Struct secret_cosmwasm_std::testing::MockApi
source · [−]pub struct MockApi { /* private fields */ }Trait Implementations
sourceimpl Api for MockApi
impl Api for MockApi
sourcefn addr_validate(&self, input: &str) -> StdResult<Addr>
fn addr_validate(&self, input: &str) -> StdResult<Addr>
Takes a human readable address and validates if it is valid.
If it the validation succeeds, a
Addr containing the same data as the input is returned. Read moresourcefn addr_canonicalize(&self, input: &str) -> StdResult<CanonicalAddr>
fn addr_canonicalize(&self, input: &str) -> StdResult<CanonicalAddr>
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
sourcefn addr_humanize(&self, canonical: &CanonicalAddr) -> StdResult<Addr>
fn addr_humanize(&self, canonical: &CanonicalAddr) -> StdResult<Addr>
Takes a canonical address and returns a human readble address.
This is the inverse of
addr_canonicalize. Read moresourcefn secp256k1_verify(
&self,
message_hash: &[u8],
signature: &[u8],
public_key: &[u8]
) -> Result<bool, VerificationError>
fn secp256k1_verify(
&self,
message_hash: &[u8],
signature: &[u8],
public_key: &[u8]
) -> Result<bool, VerificationError>
ECDSA secp256k1 signature verification. Read more
sourcefn secp256k1_recover_pubkey(
&self,
message_hash: &[u8],
signature: &[u8],
recovery_param: u8
) -> Result<Vec<u8>, RecoverPubkeyError>
fn secp256k1_recover_pubkey(
&self,
message_hash: &[u8],
signature: &[u8],
recovery_param: u8
) -> Result<Vec<u8>, RecoverPubkeyError>
Recovers a public key from a message hash and a signature. Read more
sourcefn ed25519_verify(
&self,
message: &[u8],
signature: &[u8],
public_key: &[u8]
) -> Result<bool, VerificationError>
fn ed25519_verify(
&self,
message: &[u8],
signature: &[u8],
public_key: &[u8]
) -> Result<bool, VerificationError>
EdDSA ed25519 signature verification. Read more
sourcefn ed25519_batch_verify(
&self,
messages: &[&[u8]],
signatures: &[&[u8]],
public_keys: &[&[u8]]
) -> Result<bool, VerificationError>
fn ed25519_batch_verify(
&self,
messages: &[&[u8]],
signatures: &[&[u8]],
public_keys: &[&[u8]]
) -> Result<bool, VerificationError>
Performs batch Ed25519 signature verification. Read more
sourcefn debug(&self, message: &str)
fn debug(&self, message: &str)
Emits a debugging message that is handled depending on the environment (typically printed to console or ignored).
Those messages are not persisted to chain. Read more
impl Copy for MockApi
Auto Trait Implementations
impl RefUnwindSafe for MockApi
impl Send for MockApi
impl Sync for MockApi
impl Unpin for MockApi
impl UnwindSafe for MockApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more