From 22eee06ed918b37975f8b4c6001b0d9ce6404bdd Mon Sep 17 00:00:00 2001 From: dmarzzz Date: Tue, 12 Dec 2023 18:47:13 +0800 Subject: [PATCH] SignMessage Precompile WIP --- specs/rigil/precompiles.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/specs/rigil/precompiles.md b/specs/rigil/precompiles.md index d73d339..9681277 100644 --- a/specs/rigil/precompiles.md +++ b/specs/rigil/precompiles.md @@ -23,10 +23,11 @@ custom_edit_url: "https://github.com/flashbots/suave-specs/edit/main/specs/rigil - [`SimulateBundle`](#simulatebundle) - [`ExtractHint`](#extracthint) - [`SubmitBundleJsonRPC`](#submitbundlejsonrpc) - - [`FillMevShareBundleAddress`](#fillmevsharebundleaddress) + - [`FillMevShareBundle`](#fillmevsharebundle) - [`BuildEthBlock`](#buildethblock) - [`SubmitEthBlockBidToRelay`](#submitethblockbidtorelay) - [`SignEthTransaction`](#signethtransaction) + - [`SignMessage`](#signmessage) - [Precompiles Governance](#precompiles-governance) @@ -220,6 +221,19 @@ Signs an Ethereum Transaction, 1559 or Legacy, and returns raw signed transactio function signEthTransaction(bytes memory txn, string memory chainId, string memory signingKey) view returns (bytes memory) ``` +### `SignMessage` + +[🔗 Implementation - WIP]() + +Address: `0x0000000000000000000000000000000040100003` + +Signs an arbitrary digest represented as bytes and returns bytes representing signed message. `digest` is bytes representation of the digest. `signingKey` is hex encoded string of the ECDSA private key *without the 0x prefix*. + +```solidity +function signMessage(bytes memory digest, string memory signingKey) view returns (bytes memory) +``` + + ## Precompiles Governance The governance process for adding precompiles is in it's early stages but is as follows: