mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
fix/ignore cargo deny issues (#1183)
This commit is contained in:
committed by
Bastian Köcher
parent
44a6416ffc
commit
f4a82d4e81
@@ -13,7 +13,7 @@ fixed-hash = { version = "0.7", default-features = false }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
impl-rlp = { version = "0.3", default-features = false }
|
||||
impl-serde = { version = "0.3.1", optional = true }
|
||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
||||
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac", "static-context"] }
|
||||
parity-bytes = { version = "0.1", default-features = false }
|
||||
plain_hasher = { version = "0.2.2", default-features = false }
|
||||
primitive-types = { version = "0.10", default-features = false, features = ["codec", "rlp"] }
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
//! Used for testing and benchmarking.
|
||||
|
||||
// reexport to avoid direct secp256k1 deps by other crates
|
||||
pub use secp256k1::SecretKey;
|
||||
pub use libsecp256k1::SecretKey;
|
||||
|
||||
use crate::{
|
||||
public_to_address, rlp_encode, step_validator, Address, AuraHeader, RawTransaction,
|
||||
UnsignedTransaction, H256, H520, U256,
|
||||
};
|
||||
|
||||
use secp256k1::{Message, PublicKey};
|
||||
use libsecp256k1::{Message, PublicKey};
|
||||
|
||||
/// Utilities for signing headers.
|
||||
pub trait SignHeader {
|
||||
@@ -81,7 +81,7 @@ impl SignTransaction for UnsignedTransaction {
|
||||
/// Return author's signature over given message.
|
||||
pub fn sign(author: &SecretKey, message: H256) -> H520 {
|
||||
let (signature, recovery_id) =
|
||||
secp256k1::sign(&Message::parse(message.as_fixed_bytes()), author);
|
||||
libsecp256k1::sign(&Message::parse(message.as_fixed_bytes()), author);
|
||||
let mut raw_signature = [0u8; 65];
|
||||
raw_signature[..64].copy_from_slice(&signature.serialize());
|
||||
raw_signature[64] = recovery_id.serialize();
|
||||
|
||||
Reference in New Issue
Block a user