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
49b183cf48
commit
c0809ecac6
@@ -56,25 +56,13 @@ message QueryResolveResponse {
|
||||
}
|
||||
|
||||
// QueryLoginOptionsRequest is the request type for the Query/LoginOptions RPC method.
|
||||
message QueryLoginOptionsRequest {
|
||||
string origin = 1;
|
||||
string handle = 2;
|
||||
message QueryWitnessCredentialRequest {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
// QueryLoginOptionsResponse is the response type for the Query/LoginOptions RPC method.
|
||||
message QueryLoginOptionsResponse {
|
||||
message QueryWitnessCredentialResponse {
|
||||
// options is the PublicKeyCredentialAttestationOptions
|
||||
string options = 1;
|
||||
}
|
||||
|
||||
// QueryRegisterOptionsRequest is the request type for the Query/RegisterOptions RPC method.
|
||||
message QueryRegisterOptionsRequest {
|
||||
string origin = 1;
|
||||
string handle = 2;
|
||||
}
|
||||
|
||||
// QueryRegisterOptionsResponse is the response type for the Query/RegisterOptions RPC method.
|
||||
message QueryRegisterOptionsResponse {
|
||||
string options = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,10 +6,33 @@ option go_package = "github.com/onsonr/hway/x/did/types";
|
||||
import "cosmos/orm/v1/orm.proto";
|
||||
import "did/v1/genesis.proto";
|
||||
|
||||
// Aliases represents the `alsoKnownAs` property associated with a DID Controller
|
||||
message Aliases {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 1
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
// The unique identifier of the alias
|
||||
string id = 1;
|
||||
|
||||
// Origin is the Alias provider
|
||||
string origin = 2;
|
||||
|
||||
// Handle is the user defined alias
|
||||
string handle = 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: 1
|
||||
id: 2
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
@@ -33,7 +56,7 @@ message Assertion {
|
||||
// Attestation represents linked identifiers (e.g., Crypto Accounts, Github, Email, Phone)
|
||||
message Attestation {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 2
|
||||
id: 3
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
@@ -57,7 +80,7 @@ message Attestation {
|
||||
// Controller represents a Sonr DWN Vault
|
||||
message Controller {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 3
|
||||
id: 4
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
@@ -80,7 +103,7 @@ message Controller {
|
||||
// Delegation represents IBC Account Controllers for various chains (e.g., ETH, BTC)
|
||||
message Delegation {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 4
|
||||
id: 5
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
@@ -112,7 +135,7 @@ message Delegation {
|
||||
// Service represents a service in a DID Document
|
||||
message Service {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 5
|
||||
id: 6
|
||||
primary_key: {fields: "id"}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user