mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -5,6 +5,7 @@ package did.v1;
|
||||
import "cosmos/orm/v1/orm.proto";
|
||||
import "did/v1/genesis.proto";
|
||||
import "did/v1/models.proto";
|
||||
import "did/v1/enums.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/sonr/x/did/types";
|
||||
|
||||
@@ -28,6 +29,30 @@ message Account {
|
||||
fields: "controller,chain_code,index"
|
||||
unique: true
|
||||
}
|
||||
index: { id: 1, fields: "subject", unique: true }
|
||||
};
|
||||
|
||||
// The unique identifier of the alias
|
||||
string id = 1;
|
||||
|
||||
// Origin is the Alias provider
|
||||
string origin = 2;
|
||||
|
||||
// Subject is the user defined alias
|
||||
string subject = 3;
|
||||
|
||||
// Controller of the alias
|
||||
string controller = 4;
|
||||
|
||||
// Expiration of the alias
|
||||
uint64 expiration = 5;
|
||||
}
|
||||
|
||||
// Assertion represents strongly created credentials (e.g., Passkeys, SSH, GPG, Native Secure Enclaave)
|
||||
message Assertion {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 2
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
// The unique identifier of the account
|
||||
@@ -190,4 +215,15 @@ message VerificationMethod {
|
||||
|
||||
// The public key of the verification
|
||||
PubKey public_key = 6;
|
||||
// The controller DID of the service
|
||||
string controller_did = 3;
|
||||
|
||||
// The domain name of the service
|
||||
string origin_uri = 4;
|
||||
|
||||
// The service endpoint
|
||||
map<string, string> service_endpoints = 5;
|
||||
|
||||
// Scopes is the Authorization Grants of the service
|
||||
repeated PermissionScope scopes = 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user