(no commit message provided)

This commit is contained in:
Prad Nukala
2024-07-06 03:02:45 -04:00
committed by Prad Nukala (aider)
parent 775150830f
commit e127d70584
10 changed files with 3047 additions and 1312 deletions
+6 -1
View File
@@ -23,7 +23,12 @@ message DIDDocument {
message VerificationMethod {
string id = 1;
string controller = 2;
PublicKey public_key = 3;
// The delegation proof or verification method
string public_key_multibase = 3;
// Public Key JWKS is a map of the associated public keys
map<string, string> public_key_jwks = 4;
}
-14
View File
@@ -30,18 +30,4 @@ message Params {
double encryption_reward_rate = 5;
}
// PublicKey is the struct that represents a public key
message PublicKey {
option (amino.name) = "did/publickey";
option (amino.message_encoding) = "key_field";
option (gogoproto.goproto_stringer) = false;
// Key is the public key
bytes key = 1;
// Type is the type of the public key
string key_type = 2;
// DID is the DID of the public key
string did = 3;
}
+31 -3
View File
@@ -6,6 +6,30 @@ option go_package = "github.com/onsonr/hway/x/did/types";
import "cosmos/orm/v1/orm.proto";
import "did/v1/genesis.proto";
// Assertion represents strongly created credentials (e.g., Passkeys, SSH, GPG, Native Secure Enclaave)
message Assertion {
option (cosmos.orm.v1.table) = {
id: 1
primary_key: {fields: "id"}
};
// The unique identifier of the attestation
string id = 1;
// Key type (e.g., "passkey", "ssh", "gpg", "native-secure-enclave")
string key_type = 2;
// The value of the linked identifier
bytes credential = 3;
// Metadata is optional additional information about the assertion
map<string, string> metadata = 4;
// The controller of the attestation
string controller = 5;
}
// Attestation represents linked identifiers (e.g., Crypto Accounts, Github, Email, Phone)
message Attestation {
option (cosmos.orm.v1.table) = {
@@ -29,6 +53,7 @@ message Attestation {
string controller = 5;
}
// Controller represents a Sonr DWN Vault
message Controller {
option (cosmos.orm.v1.table) = {
@@ -43,7 +68,7 @@ message Controller {
string did = 2;
// The public key of the controller
bytes public_key = 3;
string public_key_multibase = 3;
// The vault address or identifier
string vault_cid = 4;
@@ -75,10 +100,13 @@ message Delegation {
string controller_did = 5;
// The delegation proof or verification method
bytes public_key = 6;
string public_key_multibase = 6;
// Public Key JWKS is a map of the associated public keys
map<string, string> public_key_jwks = 7;
// IBC Channel ID
uint64 channel_id = 7;
uint64 channel_id = 8;
}
// Service represents a service in a DID Document