Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.
Open
Changes from all commits
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
16 changes: 15 additions & 1 deletion specs/rigil/precompiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- /TOC -->
Expand Down Expand Up @@ -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:
Expand Down