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:
@@ -1569,7 +1569,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn transaction_with_chain_id(chain_id: u64) -> SignedTransaction {
|
||||
let keypair = Random.generate().unwrap();
|
||||
let keypair = Random.generate();
|
||||
Transaction {
|
||||
action: Action::Create,
|
||||
value: U256::zero(),
|
||||
@@ -1669,7 +1669,7 @@ mod tests {
|
||||
#[test]
|
||||
fn should_treat_unfamiliar_locals_selectively() {
|
||||
// given
|
||||
let keypair = Random.generate().unwrap();
|
||||
let keypair = Random.generate();
|
||||
let client = TestBlockChainClient::default();
|
||||
let mut local_accounts = ::std::collections::HashSet::new();
|
||||
local_accounts.insert(keypair.address());
|
||||
@@ -1813,7 +1813,7 @@ mod tests {
|
||||
let addr = tap.insert_account(keccak("1").into(), &"".into()).unwrap();
|
||||
let client = generate_dummy_client_with_spec(spec);
|
||||
let engine_signer = Box::new((tap.clone(), addr, "".into()));
|
||||
let msg = Default::default();
|
||||
let msg = [1u8; 32].into();
|
||||
assert!(client.engine().sign(msg).is_err());
|
||||
|
||||
// should set engine signer and miner author
|
||||
|
||||
@@ -295,7 +295,7 @@ impl TestBlockChainClient {
|
||||
_ => 1,
|
||||
};
|
||||
let mut txs = RlpStream::new_list(num_transactions);
|
||||
let keypair = Random.generate().unwrap();
|
||||
let keypair = Random.generate();
|
||||
let mut nonce = U256::zero();
|
||||
|
||||
for _ in 0..num_transactions {
|
||||
@@ -364,7 +364,7 @@ impl TestBlockChainClient {
|
||||
|
||||
/// Inserts a transaction with given gas price to miners transactions queue.
|
||||
pub fn insert_transaction_with_gas_price_to_queue(&self, gas_price: U256) -> H256 {
|
||||
let keypair = Random.generate().unwrap();
|
||||
let keypair = Random.generate();
|
||||
let tx = Transaction {
|
||||
action: Action::Create,
|
||||
value: U256::from(100),
|
||||
|
||||
Reference in New Issue
Block a user