Trait dharitri_wasm::api::CryptoApi
source · pub trait CryptoApi {
type BigUint: BigUintApi + 'static;
// Required methods
fn sha256(&self, data: &[u8]) -> H256;
fn keccak256(&self, data: &[u8]) -> H256;
fn verify_bls(&self, key: &[u8], message: &[u8], signature: &[u8]) -> bool;
fn verify_ed25519(
&self,
key: &[u8],
message: &[u8],
signature: &[u8]
) -> bool;
fn verify_secp256k1(
&self,
key: &[u8],
message: &[u8],
signature: &[u8]
) -> bool;
}
Required Associated Types§
sourcetype BigUint: BigUintApi + 'static
type BigUint: BigUintApi + 'static
Numeric type used in some of the Arwen hooks.