(no commit message provided)

This commit is contained in:
Prad Nukala
2024-07-06 00:55:50 -04:00
committed by Prad Nukala (aider)
parent 2f976209db
commit 775150830f
13 changed files with 262 additions and 1601 deletions
-21
View File
@@ -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;
+2 -2
View File
@@ -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;