chore: expose some helpers (#1118)
This commit is contained in:
parent
6e43d46f57
commit
509db06080
|
@ -210,7 +210,7 @@ impl Serialize for BlockId {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A block Number (or tag - "latest", "earliest", "pending")
|
/// A block Number (or tag - "latest", "earliest", "pending")
|
||||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
||||||
pub enum BlockNumber {
|
pub enum BlockNumber {
|
||||||
/// Latest block
|
/// Latest block
|
||||||
Latest,
|
Latest,
|
||||||
|
|
|
@ -131,7 +131,7 @@ impl Signature {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieve the recovery ID.
|
/// Retrieve the recovery ID.
|
||||||
fn recovery_id(&self) -> Result<RecoveryId, SignatureError> {
|
pub fn recovery_id(&self) -> Result<RecoveryId, SignatureError> {
|
||||||
let standard_v = normalize_recovery_id(self.v);
|
let standard_v = normalize_recovery_id(self.v);
|
||||||
Ok(RecoveryId::new(standard_v)?)
|
Ok(RecoveryId::new(standard_v)?)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue