mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
- **refactor: refactor DID module types and move to controller package** - **refactor: move controller creation and resolution logic to keeper** - **refactor: update imports to reflect controller package move** - **refactor: update protobuf definitions for DID module** - **docs: update proto README to reflect changes** - **refactor: move hway to gateway, update node modules, and refactor pkl generation** - **build: update pkl-gen task to use new pkl file paths** - **refactor: refactor DWN WASM build and deployment process** - **refactor: refactor DID controller implementation to use account-based storage** - **refactor: move DID controller interface to base file and update implementation** - **chore: migrate to google protobuf** - **feat: Add v0.52.0 Interfaces for Acc Abstraction** - **refactor: replace public_key with public_key_hex in Assertion message** - **refactor: remove unused PubKey, JSONWebKey, and RawKey message types and related code**
78 lines
2.0 KiB
Protocol Buffer
78 lines
2.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
package did.v1;
|
|
|
|
import "did/v1/genesis.proto";
|
|
import "did/v1/params.proto";
|
|
import "google/api/annotations.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/did/types";
|
|
|
|
// Query provides defines the gRPC querier service.
|
|
service Query {
|
|
// Params queries all parameters of the module.
|
|
rpc Params(QueryRequest) returns (QueryParamsResponse) {
|
|
option (google.api.http).get = "/did/v1/params";
|
|
}
|
|
|
|
// Resolve queries the DID document by its id.
|
|
rpc Resolve(QueryRequest) returns (QueryResolveResponse) {
|
|
option (google.api.http).get = "/did/v1/{did}";
|
|
}
|
|
|
|
// Verify verifies a message with the DID document
|
|
rpc Verify(QueryVerifyRequest) returns (QueryVerifyResponse) {
|
|
option (google.api.http).post = "/did/v1/{did}/verify";
|
|
}
|
|
}
|
|
|
|
// Queryequest is the request type for the Query/Params RPC method.
|
|
message QueryRequest {
|
|
string did = 1;
|
|
string origin = 2;
|
|
string key = 3;
|
|
string asset = 4;
|
|
}
|
|
|
|
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
message QueryParamsResponse {
|
|
// params defines the parameters of the module.
|
|
Params params = 1;
|
|
}
|
|
|
|
// QueryResolveResponse is the response type for the Query/Resolve RPC method.
|
|
message QueryResolveResponse {
|
|
// document is the DID document
|
|
Document document = 1;
|
|
}
|
|
|
|
// QuerySignRequest is the request type for the Query/Sign RPC method.
|
|
message QuerySignRequest {
|
|
string did = 1;
|
|
string origin = 2;
|
|
string key = 3;
|
|
string asset = 4;
|
|
string message = 5;
|
|
}
|
|
|
|
// QuerySignResponse is the response type for the Query/Sign RPC method.
|
|
message QuerySignResponse {
|
|
// signature is the signature of the message
|
|
string signature = 1;
|
|
}
|
|
|
|
// QueryVerifyRequest is the request type for the Query/Verify RPC method.
|
|
message QueryVerifyRequest {
|
|
string did = 1;
|
|
string origin = 2;
|
|
string key = 3;
|
|
string asset = 4;
|
|
string message = 5;
|
|
string signature = 6;
|
|
}
|
|
|
|
// QueryVerifyResponse is the response type for the Query/Verify RPC method.
|
|
message QueryVerifyResponse {
|
|
// valid is the validity of the signature
|
|
bool valid = 1;
|
|
}
|