Expand description
Defines runtime-supported cryptographic functions. What cryptgraphic functions have in common is that the operations they implement are: 1. Relatively expensive, and 2. Relatively common in Contract applications. In order to reduce gas costs, these functions are implemented in native (not-WASM) code that lives outside of the WASM runtime, and exposed to calls through the handles defined in this module.
Functionsยง
- keccak256
- Computes the Keccak256 digest (32 bytes) of arbitrary input.
- ripemd
- Computes the RIPEMD160 digest (20 bytes) of arbitrary input.
- sha256
- Computes the SHA256 digest (32 bytes) of arbitrary input.
- verify_
ed25519_ signature - Returns whether an Ed25519 signature was produced by a specified by a specified address over some specified message.
Contract call fails if the input
address
orsignature
is not valid.