mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 02:41:41 +00:00
refactor: remove unused code related to whitelisted assets
This commit is contained in:
+38
-12
@@ -3,30 +3,31 @@ syntax = "proto3";
|
||||
package did.v1;
|
||||
|
||||
import "cosmos/orm/v1/orm.proto";
|
||||
import "did/v1/genesis.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/sonr/x/did/types";
|
||||
|
||||
// Alias represents a DID alias
|
||||
message Alias {
|
||||
message Authentication {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 1
|
||||
primary_key: {fields: "id"}
|
||||
primary_key: {fields: "did"}
|
||||
index: {
|
||||
id: 1
|
||||
fields: "subject,origin"
|
||||
fields: "controller,subject"
|
||||
unique: true
|
||||
}
|
||||
};
|
||||
|
||||
// The unique identifier of the alias
|
||||
string id = 1;
|
||||
// The unique identifier of the authentication
|
||||
string did = 1;
|
||||
|
||||
// The alias of the DID
|
||||
string subject = 2;
|
||||
// The authentication of the DID
|
||||
string controller = 2;
|
||||
|
||||
// Origin of the alias
|
||||
string origin = 3;
|
||||
// Origin of the authentication
|
||||
string subject = 3;
|
||||
|
||||
// PubKey is the verification method
|
||||
PubKey public_key = 4;
|
||||
}
|
||||
|
||||
// Controller represents a Sonr DWN Vault
|
||||
@@ -75,7 +76,7 @@ message Controller {
|
||||
string btc_address = 5;
|
||||
|
||||
// PubKey is the verification method
|
||||
bytes public_key = 6;
|
||||
PubKey public_key = 6;
|
||||
|
||||
// Val Keyshare
|
||||
string ks_val = 7;
|
||||
@@ -128,3 +129,28 @@ message Verification {
|
||||
// CapabilityInvocation)
|
||||
string verification_type = 7;
|
||||
}
|
||||
|
||||
// PubKey defines a public key for a did
|
||||
message PubKey {
|
||||
string role = 1;
|
||||
string key_type = 2;
|
||||
RawKey raw_key = 3;
|
||||
JSONWebKey jwk = 4;
|
||||
}
|
||||
|
||||
// JWK represents a JSON Web Key
|
||||
message JSONWebKey {
|
||||
string kty = 1; // Key Type
|
||||
string crv = 2; // Curve (for EC and OKP keys)
|
||||
string x = 3; // X coordinate (for EC and OKP keys)
|
||||
string y = 4; // Y coordinate (for EC keys)
|
||||
string n = 5; // Modulus (for RSA keys)
|
||||
string e = 6; // Exponent (for RSA keys)
|
||||
}
|
||||
|
||||
message RawKey {
|
||||
string algorithm = 1;
|
||||
string encoding = 2;
|
||||
string curve = 3;
|
||||
bytes key = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user