mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
feat: Add whitelisted key types to genesis params
This commit is contained in:
committed by
Prad Nukala (aider)
parent
f642ad8a98
commit
c0e616a78a
+21
-18
@@ -23,6 +23,9 @@ message Params {
|
|||||||
|
|
||||||
// Whitelisted Blockchains
|
// Whitelisted Blockchains
|
||||||
repeated ChainInfo whitelisted_chains = 2;
|
repeated ChainInfo whitelisted_chains = 2;
|
||||||
|
|
||||||
|
// Whitelisted Key Types
|
||||||
|
repeated KeyInfo whitelisted_keys = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AssetInfo defines the asset info
|
// AssetInfo defines the asset info
|
||||||
@@ -55,27 +58,27 @@ message ChainInfo {
|
|||||||
repeated Endpoint rest_endpoints = 8;
|
repeated Endpoint rest_endpoints = 8;
|
||||||
ExplorerInfo explorer = 9;
|
ExplorerInfo explorer = 9;
|
||||||
FeeInfo fee_info = 10;
|
FeeInfo fee_info = 10;
|
||||||
}
|
|
||||||
|
|
||||||
// Endpoint defines an endpoint
|
// Endpoint defines an endpoint
|
||||||
message Endpoint {
|
message Endpoint {
|
||||||
string url = 1;
|
string url = 1;
|
||||||
bool is_primary = 2;
|
bool is_primary = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExplorerInfo defines the explorer info
|
// ExplorerInfo defines the explorer info
|
||||||
message ExplorerInfo {
|
message ExplorerInfo {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
string url = 2;
|
string url = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FeeInfo defines a fee info
|
// FeeInfo defines a fee info
|
||||||
message FeeInfo {
|
message FeeInfo {
|
||||||
string base_denom = 1;
|
string base_denom = 1;
|
||||||
repeated string fee_rates = 2;
|
repeated string fee_rates = 2;
|
||||||
int32 init_gas_limit = 3;
|
int32 init_gas_limit = 3;
|
||||||
bool is_simulable = 4;
|
bool is_simulable = 4;
|
||||||
double gas_multiply = 5;
|
double gas_multiply = 5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// KeyInfo defines information for accepted PubKey types
|
// KeyInfo defines information for accepted PubKey types
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import "gogoproto/gogo.proto";
|
|||||||
import "amino/amino.proto";
|
import "amino/amino.proto";
|
||||||
option go_package = "github.com/onsonr/hway/x/did/types";
|
option go_package = "github.com/onsonr/hway/x/did/types";
|
||||||
|
|
||||||
|
// DIDNamespace define the different namespaces of DID
|
||||||
enum DIDNamespace {
|
enum DIDNamespace {
|
||||||
DID_NAMESPACE_UNSPECIFIED = 0;
|
DID_NAMESPACE_UNSPECIFIED = 0;
|
||||||
DID_NAMESPACE_IPFS = 1;
|
DID_NAMESPACE_IPFS = 1;
|
||||||
@@ -14,6 +15,16 @@ enum DIDNamespace {
|
|||||||
DID_NAMESPACE_IBC = 5;
|
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
|
// PermissionScope define the Capabilities Controllers can grant for Services
|
||||||
enum PermissionScope {
|
enum PermissionScope {
|
||||||
PERMISSION_SCOPE_UNSPECIFIED = 0;
|
PERMISSION_SCOPE_UNSPECIFIED = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user