Sign a transaction pre-image in the same way Ethereum clients would sign it.
(sk: &SecretKey, hash: et::H256)
| 251 | |
| 252 | /// Sign a transaction pre-image in the same way Ethereum clients would sign it. |
| 253 | fn 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. |
| 258 | pub fn chain_id_bytes(chain_id: &ChainID) -> [u8; 8] { |
no test coverage detected