diff --git a/proto/did/v1/genesis.proto b/proto/did/v1/genesis.proto index f3b33cbfd..9adc7f1a1 100644 --- a/proto/did/v1/genesis.proto +++ b/proto/did/v1/genesis.proto @@ -23,6 +23,9 @@ message Params { // Whitelisted Blockchains repeated ChainInfo whitelisted_chains = 2; + + // Whitelisted Key Types + repeated KeyInfo whitelisted_keys = 3; } // AssetInfo defines the asset info @@ -55,27 +58,27 @@ message ChainInfo { repeated Endpoint rest_endpoints = 8; ExplorerInfo explorer = 9; FeeInfo fee_info = 10; -} + + // Endpoint defines an endpoint + message Endpoint { + string url = 1; + bool is_primary = 2; + } -// Endpoint defines an endpoint -message Endpoint { - string url = 1; - bool is_primary = 2; -} + // ExplorerInfo defines the explorer info + message ExplorerInfo { + string name = 1; + string url = 2; + } -// ExplorerInfo defines the explorer info -message ExplorerInfo { - string name = 1; - string url = 2; -} - -// FeeInfo defines a fee info -message FeeInfo { - string base_denom = 1; - repeated string fee_rates = 2; - int32 init_gas_limit = 3; - bool is_simulable = 4; - double gas_multiply = 5; + // FeeInfo defines a fee info + message FeeInfo { + string base_denom = 1; + repeated string fee_rates = 2; + int32 init_gas_limit = 3; + bool is_simulable = 4; + double gas_multiply = 5; + } } // KeyInfo defines information for accepted PubKey types diff --git a/proto/did/v1/grants.proto b/proto/did/v1/grants.proto index 893cb98ca..9399e2308 100644 --- a/proto/did/v1/grants.proto +++ b/proto/did/v1/grants.proto @@ -5,6 +5,7 @@ import "gogoproto/gogo.proto"; import "amino/amino.proto"; option go_package = "github.com/onsonr/hway/x/did/types"; +// DIDNamespace define the different namespaces of DID enum DIDNamespace { DID_NAMESPACE_UNSPECIFIED = 0; DID_NAMESPACE_IPFS = 1; @@ -14,6 +15,16 @@ enum DIDNamespace { DID_NAMESPACE_IBC = 5; } +enum KeyType { + KEY_TYPE_UNSPECIFIED = 0; + KEY_TYPE_SECP256K1 = 1; + KEY_TYPE_ED25519 = 2; + KEY_TYPE_P256 = 3; + KEY_TYPE_BLS12381 = 4; + KEY_TYPE_X25519 = 5; + KEY_TYPE_SCHNORR = 6; +} + // PermissionScope define the Capabilities Controllers can grant for Services enum PermissionScope { PERMISSION_SCOPE_UNSPECIFIED = 0;