Last active
June 18, 2024 00:22
-
-
Save jmcph4/79f54e63e9787fa75e7aec48e8fd9e5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "mania" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| reth-primitives = { git = "https://github.com/paradigmxyz/reth", rev = "c008a1fa0990089e96c7f7661587ac080fbea4c5" } | |
| secp256k1 = { version = "0.29", default-features = false, features = ["global-context", "recovery"] } | |
| [patch.crates-io] | |
| revm = { git = "https://github.com/bluealloy/revm", rev = "a28a543" } | |
| revm-interpreter = { git = "https://github.com/bluealloy/revm", rev = "a28a543" } | |
| revm-precompile = { git = "https://github.com/bluealloy/revm", rev = "a28a543" } | |
| revm-primitives = { git = "https://github.com/bluealloy/revm", rev = "a28a543" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use secp256k1::{rand, Keypair, Secp256k1}; | |
| use reth_primitives::public_key_to_address; | |
| fn test_transaction_state_change() { | |
| let secp = Secp256k1::new(); | |
| let key_pair = Keypair::new(&secp, &mut rand::thread_rng()); | |
| let sender_address = public_key_to_address(key_pair.public_key()); | |
| } | |
| pub fn main() { | |
| println!("Hello, world!"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment