mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
(no commit message provided)
This commit is contained in:
committed by
Prad Nukala (aider)
parent
2f976209db
commit
775150830f
@@ -3,33 +3,12 @@
|
||||
syntax = "proto3";
|
||||
package did.v1;
|
||||
|
||||
import "cosmos/auth/v1beta1/auth.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "did/v1/genesis.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/hway/x/did/types";
|
||||
|
||||
// EthAccount implements the authtypes.AccountI interface and embeds an
|
||||
// authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.
|
||||
message EthAccount {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (gogoproto.goproto_stringer) = false;
|
||||
option (gogoproto.equal) = false;
|
||||
|
||||
option (cosmos_proto.implements_interface) = "github.com/cosmos/cosmos-sdk/x/auth/types.cosmos.auth.v1beta1.AccountI";
|
||||
|
||||
// base_account is an authtypes.BaseAccount
|
||||
cosmos.auth.v1beta1.BaseAccount base_account = 1
|
||||
[(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""];
|
||||
|
||||
// code_hash is the hash calculated from the code contents
|
||||
string code_hash = 2 [(gogoproto.moretags) = "yaml:\"code_hash\""];
|
||||
|
||||
// controller is the address of the controller
|
||||
string controller = 3 [(gogoproto.moretags) = "yaml:\"controller\""];
|
||||
}
|
||||
|
||||
// DIDDocument defines a DID document
|
||||
message DIDDocument {
|
||||
string id = 1;
|
||||
|
||||
@@ -43,7 +43,7 @@ message Controller {
|
||||
string did = 2;
|
||||
|
||||
// The public key of the controller
|
||||
PublicKey public_key = 3;
|
||||
bytes public_key = 3;
|
||||
|
||||
// The vault address or identifier
|
||||
string vault_cid = 4;
|
||||
@@ -75,7 +75,7 @@ message Delegation {
|
||||
string controller_did = 5;
|
||||
|
||||
// The delegation proof or verification method
|
||||
PublicKey public_key = 6;
|
||||
bytes public_key = 6;
|
||||
|
||||
// IBC Channel ID
|
||||
uint64 channel_id = 7;
|
||||
|
||||
Reference in New Issue
Block a user