Struct concordium_std::ExternCryptoPrimitives
source · pub struct ExternCryptoPrimitives;
Expand description
A struct for which HasCryptoPrimitives is implemented via the crypto host functions.
Typically referred to via the alias CryptoPrimitives
.
Trait Implementations§
source§impl HasCryptoPrimitives for ExternCryptoPrimitives
impl HasCryptoPrimitives for ExternCryptoPrimitives
source§fn verify_ed25519_signature(
&self,
public_key: PublicKeyEd25519,
signature: SignatureEd25519,
message: &[u8]
) -> bool
fn verify_ed25519_signature( &self, public_key: PublicKeyEd25519, signature: SignatureEd25519, message: &[u8] ) -> bool
Verify an ed25519 signature.
source§fn verify_ecdsa_secp256k1_signature(
&self,
public_key: PublicKeyEcdsaSecp256k1,
signature: SignatureEcdsaSecp256k1,
message_hash: [u8; 32]
) -> bool
fn verify_ecdsa_secp256k1_signature( &self, public_key: PublicKeyEcdsaSecp256k1, signature: SignatureEcdsaSecp256k1, message_hash: [u8; 32] ) -> bool
Verify an ecdsa signature over secp256k1 with the bitcoin-core
implementation.
source§fn hash_sha2_256(&self, data: &[u8]) -> HashSha2256
fn hash_sha2_256(&self, data: &[u8]) -> HashSha2256
Hash the data using the SHA2-256 algorithm.
source§fn hash_sha3_256(&self, data: &[u8]) -> HashSha3256
fn hash_sha3_256(&self, data: &[u8]) -> HashSha3256
Hash the data using the SHA3-256 algorithm.
source§fn hash_keccak_256(&self, data: &[u8]) -> HashKeccak256
fn hash_keccak_256(&self, data: &[u8]) -> HashKeccak256
Hash the data using the Keccak-256 algorithm.
Auto Trait Implementations§
impl RefUnwindSafe for ExternCryptoPrimitives
impl Send for ExternCryptoPrimitives
impl Sync for ExternCryptoPrimitives
impl Unpin for ExternCryptoPrimitives
impl UnwindSafe for ExternCryptoPrimitives
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