commit e00d4011db81cba7e9acd5ba0c462df1220efb2c
parent f64e985d788c17a0e6220473a90000580ed9223c
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Wed, 17 Dec 2025 10:55:13 +0900
harmonize api to snake case
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkg/rest/mailbox.go b/pkg/rest/mailbox.go
@@ -177,24 +177,24 @@ type MailboxMetadata struct {
// Note that $H_MAILBOX == H(singingKey).
// Note also how this key cannot be updated
// as it identifies the mailbox.
- SigningKey string `json:"signingKey"`
+ SigningKey string `json:"signing_key"`
// Type of key.
// Optional, as currently only
// EdDSA keys are supported.
- SigningKeyType string `json:"signingKeyType"`
+ SigningKeyType string `json:"signing_key_type"`
// The mailbox encryption key.
// This is an HPKE public key
// in the X25519 format for use
// in a X25519-DHKEM (RFC 9180).
// Base32 crockford-encoded.
- EncryptionKey string `json:"encryptionKey"`
+ EncryptionKey string `json:"encryption_key"`
// Type of key.
// Optional, as currently only
// X25519 keys are supported.
- EncryptionKeyType string `json:"encryptionKeyType"`
+ EncryptionKeyType string `json:"encryption_key_type"`
// Expiration of this mapping.
Expiration Timestamp `json:"expiration" gorm:"embedded;embeddedPrefix:expiration_"`