Skip to content

Commit 24a0a05

Browse files
committed
Remove unused ECDSASignature::from_rsv method
1 parent 3c396df commit 24a0a05

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

key/src/ecdsa.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ impl ECDSASignature {
6868
self.0[64]
6969
}
7070

71-
/// Create a signature object from the sig.
72-
pub fn from_rsv(r: &H256, s: &H256, v: u8) -> Self {
73-
let mut sig = [0u8; 65];
74-
sig[0..32].copy_from_slice(&r);
75-
sig[32..64].copy_from_slice(&s);
76-
sig[64] = v;
77-
ECDSASignature(sig)
78-
}
79-
8071
/// Check if this is a "low" signature.
8172
pub fn is_low_s(&self) -> bool {
8273
H256::from_slice(self.s()) <= "7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0".into()

0 commit comments

Comments
 (0)