multiversx_chain_vm::vm_hooks

Trait VMHooksCrypto

Source
pub trait VMHooksCrypto: VMHooksHandlerSource {
    // Provided methods
    fn sha256_managed(&self, dest: RawHandle, data_handle: RawHandle) { ... }
    fn keccak256_managed(&self, dest: RawHandle, data_handle: RawHandle) { ... }
    fn verify_ed25519_managed(
        &self,
        key: RawHandle,
        message: RawHandle,
        signature: RawHandle,
    ) { ... }
}

Provided Methods§

Source

fn sha256_managed(&self, dest: RawHandle, data_handle: RawHandle)

Source

fn keccak256_managed(&self, dest: RawHandle, data_handle: RawHandle)

Source

fn verify_ed25519_managed( &self, key: RawHandle, message: RawHandle, signature: RawHandle, )

Should crash if the signature is invalid.

Implementors§