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§
fn sha256_managed(&self, dest: RawHandle, data_handle: RawHandle)
fn keccak256_managed(&self, dest: RawHandle, data_handle: RawHandle)
Sourcefn verify_ed25519_managed(
&self,
key: RawHandle,
message: RawHandle,
signature: RawHandle,
)
fn verify_ed25519_managed( &self, key: RawHandle, message: RawHandle, signature: RawHandle, )
Should crash if the signature is invalid.