Use parity-crypto updated to use upstream rust-secp256k1 (#11406)

* Use parity-crypto updated to use upstream rust-secp256k1

* Fetch dependency from git

* Missed a session ID

* Add free-standing inversion function that uses `libsecp256k1`

* fixed tests

* Update deps

* Use parity-crypto 0.5.0
Use libsecp256k1 0.3.5

* Review grumble

Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com>
This commit is contained in:
David
2020-02-10 18:29:21 +01:00
committed by GitHub
parent 2c4b51c3ea
commit 99271db9d3
82 changed files with 642 additions and 503 deletions

View File

@@ -1963,7 +1963,7 @@ mod tests {
// TODO: fix (preferred) or remove
evm_test_ignore!{test_transact_simple: test_transact_simple_int}
fn test_transact_simple(factory: Factory) {
let keypair = Random.generate().unwrap();
let keypair = Random.generate();
let t = Transaction {
action: Action::Create,
value: U256::from(17),
@@ -2002,7 +2002,7 @@ mod tests {
evm_test!{test_transact_invalid_nonce: test_transact_invalid_nonce_int}
fn test_transact_invalid_nonce(factory: Factory) {
let keypair = Random.generate().unwrap();
let keypair = Random.generate();
let t = Transaction {
action: Action::Create,
value: U256::from(17),
@@ -2035,7 +2035,7 @@ mod tests {
evm_test!{test_transact_gas_limit_reached: test_transact_gas_limit_reached_int}
fn test_transact_gas_limit_reached(factory: Factory) {
let keypair = Random.generate().unwrap();
let keypair = Random.generate();
let t = Transaction {
action: Action::Create,
value: U256::from(17),
@@ -2070,7 +2070,7 @@ mod tests {
evm_test!{test_not_enough_cash: test_not_enough_cash_int}
fn test_not_enough_cash(factory: Factory) {
let keypair = Random.generate().unwrap();
let keypair = Random.generate();
let t = Transaction {
action: Action::Create,
value: U256::from(18),