Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions api-spec/openapi/swagger/signer/v1/service.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,46 @@
}
}
},
"/v1/sign-message": {
"post": {
"tags": [
"SignerService"
],
"operationId": "SignerService_SignMessage",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SignMessageRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "a successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SignMessageResponse"
}
}
}
},
"default": {
"description": "An unexpected error response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Status"
}
}
}
}
}
}
},
"/v1/sign-transaction": {
"post": {
"tags": [
Expand Down Expand Up @@ -184,6 +224,26 @@
}
}
},
"SignMessageRequest": {
"title": "SignMessageRequest",
"type": "object",
"properties": {
"message": {
"type": "string",
"format": "byte"
}
}
},
"SignMessageResponse": {
"title": "SignMessageResponse",
"type": "object",
"properties": {
"signature": {
"type": "string",
"format": "byte"
}
}
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"SignTransactionRequest": {
"title": "SignTransactionRequest",
"type": "object",
Expand Down
117 changes: 107 additions & 10 deletions api-spec/protobuf/gen/signer/v1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions api-spec/protobuf/gen/signer/v1/service.pb.rgw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions api-spec/protobuf/gen/signer/v1/service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions api-spec/protobuf/signer/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ service SignerService {
body: "*"
};
}
rpc SignMessage(SignMessageRequest) returns (SignMessageResponse) {
option (meshapi.gateway.http) = {
post: "/v1/sign-message"
body: "*"
};
}
}

message GetStatusRequest {}
Expand All @@ -54,4 +60,11 @@ message SignTransactionTapscriptRequest {
}
message SignTransactionTapscriptResponse {
string signed_tx = 1;
}

message SignMessageRequest {
bytes message = 1;
}
message SignMessageResponse {
bytes signature = 1;
}
Comment thread
louisinger marked this conversation as resolved.
Loading
Loading