MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / sign_eth

Function sign_eth

fendermint/vm/message/src/signed.rs:253–255  ·  view source on GitHub ↗

Sign a transaction pre-image in the same way Ethereum clients would sign it.

(sk: &SecretKey, hash: et::H256)

Source from the content-addressed store, hash-verified

251
252/// Sign a transaction pre-image in the same way Ethereum clients would sign it.
253fn sign_eth(sk: &SecretKey, hash: et::H256) -> Signature {
254 sign_secp256k1(sk, &hash.0)
255}
256
257/// Turn a [`ChainID`] into bytes. Uses big-endian encoding.
258pub fn chain_id_bytes(chain_id: &ChainID) -> [u8; 8] {

Callers 1

new_secp256k1Method · 0.85

Calls 1

sign_secp256k1Function · 0.85

Tested by

no test coverage detected