From 45afebe22a2870b847460fa521351044dc061a4a Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Thu, 23 Feb 2023 01:37:25 -0800 Subject: [PATCH] add eth_getPlumeSignature to API --- openrpc.json | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/openrpc.json b/openrpc.json index 6de704d..d9b1949 100644 --- a/openrpc.json +++ b/openrpc.json @@ -421,6 +421,40 @@ "$ref": "#/components/schemas/bytes" } } + }, + { + "name": "eth_getPlumeSignature", + "tags": [ + { + "$ref": "#/components/tags/Metamask" + } + ], + "summary": "Generates the plume signature and necessary proof signals.", + "description": "Requests that MetaMask generates the plume signature and necessary proof signals.", + "params": [ + { + "name": "Message", + "required": true, + "description": "A message to generate ", + "schema": { + "type": "string" + } + }, + { + "name": "Address", + "required": true, + "description": "The address of the requested signing account", + "schema": { + "$ref": "#/components/schemas/address" + } + } + ], + "result": { + "name": "PlumeResult", + "schema": { + "$ref": "#/components/schemas/PlumeResponse" + } + } } ], "components": { @@ -533,6 +567,35 @@ "items": { "$ref": "#/components/schemas/Permission" } + }, + "PlumeResponse": { + "type": "object", + "properties": { + "plume": { + "description": "The deterministic signature generated for the given message, also a public input to the proof.", + "$ref": "#/components/schemas/bytes" + }, + "s": { + "description": "Private input to the proof.", + "$ref": "#/components/schemas/bytes" + }, + "c": { + "description": "Private input to the proof.", + "$ref": "#/components/schemas/bytes" + }, + "gPowR": { + "description": "Private input to the proof.", + "$ref": "#/components/schemas/bytes" + }, + "hashMPKPowR": { + "description": "Optional private output to the proof.", + "$ref": "#/components/schemas/bytes" + }, + "publicKey": { + "description": "Optional private output to the proof.", + "$ref": "#/components/schemas/bytes" + } + } } }, "tags": {