From 9dff21bbfd50f7cdd9fbebb29d683a51c60cfbb0 Mon Sep 17 00:00:00 2001 From: "Prad Nukala (aider)" Date: Sat, 31 Aug 2024 11:37:44 -0400 Subject: [PATCH] feat: Add fields to KeyInfo struct to distinguish CBOR and standard blockchain key types --- proto/did/v1/genesis.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proto/did/v1/genesis.proto b/proto/did/v1/genesis.proto index 43aeb6f50..f3b33cbfd 100644 --- a/proto/did/v1/genesis.proto +++ b/proto/did/v1/genesis.proto @@ -80,4 +80,9 @@ message FeeInfo { // KeyInfo defines information for accepted PubKey types message KeyInfo { + string key_type = 1; // e.g., "secp256k1", "ed25519", "webauthn" + string algorithm = 2; // e.g., "ES256", "EdDSA", "ES256K" + string curve = 3; // e.g., "P-256", "Ed25519", "secp256k1" + bool is_cbor = 4; // true for WebAuthn CBOR-encoded keys, false for others + string encoding = 5; // e.g., "hex", "base64", "multibase" }