Struct cosmwasm_std::testing::MockApi  [−][src]
pub struct MockApi { /* fields omitted */ }Trait Implementations
Takes a human readable address and validates if it’s correctly formatted. If it succeeds, a Addr is returned. Read more
Takes a human readable address and returns a canonical binary representation of it. This can be used when a compact fixed length representation is needed. Read more
Takes a canonical address and returns a human readble address. This is the inverse of [addr_canonicalize]. Read more
fn secp256k1_verify(
    &self, 
    message_hash: &[u8], 
    signature: &[u8], 
    public_key: &[u8]
) -> Result<bool, VerificationError>fn secp256k1_recover_pubkey(
    &self, 
    message_hash: &[u8], 
    signature: &[u8], 
    recovery_param: u8
) -> Result<Vec<u8>, RecoverPubkeyError>fn ed25519_verify(
    &self, 
    message: &[u8], 
    signature: &[u8], 
    public_key: &[u8]
) -> Result<bool, VerificationError>Auto Trait Implementations
impl RefUnwindSafe for MockApiimpl UnwindSafe for MockApiBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self