mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
ethereum: implement schnorr verification contract deployment and related crypto (#36)
* basic schnorr verify working * add schnorr-verify as submodule * remove previous code * Misc Ethereum work which will probably be disregarded * add ecrecover hack test, worksgit add src/ * merge w develop * starting w/ rust-web3 * trying to use ethers * deploy_schnorr_verifier_contract finally working * modify EthereumHram to use 27/28 for point parity * updated address calc, solidity schnorr verify now working * add verify failure to test * update readme * move ethereum/ to coins/ * un fmt coins/monero * update .gitmodules * fix cargo paths * fix coins/monero * add #[allow(non_snake_case)] * un-fmt stuff * move crypto to coins/ethereum * move unit tests to ethereum/tests * remove js, build w ethers * update .gitignore * address comments * add q != 0 check * update contract param order * update contract license to AGPL * update ethereum-serai license to GPL and fmt * GPLv3 for ethereum-serai * AGPLv3 for ethereum-serai * actually fix license Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
21
coins/ethereum/README.md
Normal file
21
coins/ethereum/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Ethereum
|
||||
|
||||
This package contains Ethereum-related functionality, specifically deploying and interacting with Serai contracts.
|
||||
|
||||
## Requirements
|
||||
|
||||
- anvil & solc & geth's abigen (see [here](https://github.com/gakonst/ethers-rs#running-the-tests))
|
||||
|
||||
## To test
|
||||
|
||||
To compile contracts:
|
||||
```
|
||||
cargo build
|
||||
```
|
||||
|
||||
This places the compiled artifact into `artifacts/`.
|
||||
|
||||
To run Rust tests (you must have compiled the contracts first):
|
||||
```
|
||||
cargo test
|
||||
```
|
||||
Reference in New Issue
Block a user