pub struct EmptyApi { /* private fields */ }
Trait Implementations§
Source§impl Api for EmptyApi
impl Api for EmptyApi
Source§fn addr_validate(&self, human: &str) -> StdResult<Addr>
fn addr_validate(&self, human: &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 moreSource§fn addr_canonicalize(&self, human: &str) -> StdResult<CanonicalAddr>
fn addr_canonicalize(&self, human: &str) -> StdResult<CanonicalAddr>
Takes a human readable address and returns a canonical binary representation of it.
This can be used when a compact representation is needed. Read more
Source§fn 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
.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>
fn ed25519_batch_verify( &self, _messages: &[&[u8]], _signatures: &[&[u8]], _public_keys: &[&[u8]], ) -> Result<bool, VerificationError>
impl Copy for EmptyApi
Auto Trait Implementations§
impl Freeze for EmptyApi
impl RefUnwindSafe for EmptyApi
impl Send for EmptyApi
impl Sync for EmptyApi
impl Unpin for EmptyApi
impl UnwindSafe for EmptyApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more