mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feat: Add whitelisted key types to genesis params
This commit is contained in:
committed by
Prad Nukala (aider)
parent
f642ad8a98
commit
c0e616a78a
+22
-19
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user