Struct bsv_wasm::bsm::BSM [−][src]
pub struct BSM {}
Expand description
Bitcoin Signed Message
Implementations
pub fn is_valid_message(
message: &[u8],
signature: &Signature,
address: &P2PKHAddress
) -> bool
pub fn is_valid_message(
message: &[u8],
signature: &Signature,
address: &P2PKHAddress
) -> bool
Sign a message with the intention of verifying with this same Address. Used when using Bitcoin Signed Messages
Returns boolean
pub fn verify_message(
message: &[u8],
signature: &Signature,
address: &P2PKHAddress
) -> Result<bool>
Trait Implementations
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for BSM
impl UnwindSafe for BSM