From b5792124641076af930d22f47ae8e7813d47d298 Mon Sep 17 00:00:00 2001 From: "Prad Nukala (aider)" Date: Sat, 31 Aug 2024 12:24:43 -0400 Subject: [PATCH] refactor: Update KeyKind Enum to have proper naming conventions --- proto/did/v1/genesis.proto | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/proto/did/v1/genesis.proto b/proto/did/v1/genesis.proto index c9f747daa..88290beec 100644 --- a/proto/did/v1/genesis.proto +++ b/proto/did/v1/genesis.proto @@ -91,17 +91,17 @@ message KeyInfo { string encoding = 5; // e.g., "hex", "base64", "multibase" } -// KeyKend defines the kind of key +// KeyKind defines the kind of key enum KeyKind { - KEY_TYPE_UNSPECIFIED = 0; + KEY_KIND_UNSPECIFIED = 0; // Blockchain key types - KEY_TYPE_SECP256K1 = 1; - KEY_TYPE_ED25519 = 2; - KEY_TYPE_P256 = 3; - KEY_TYPE_BLS12381 = 4; - KEY_TYPE_X25519 = 5; - KEY_TYPE_SCHNORR = 6; + KEY_KIND_SECP256K1 = 1; + KEY_KIND_ED25519 = 2; + KEY_KIND_P256 = 3; + KEY_KIND_BLS12381 = 4; + KEY_KIND_X25519 = 5; + KEY_KIND_SCHNORR = 6; // Webauthn and FIDO key types - KEY_TYPE_WEBAUTHN = 7; - KEY_TYPE_FIDO = 8; + KEY_KIND_WEBAUTHN = 7; + KEY_KIND_FIDO = 8; }