Expand description
A few utilities
Functionsยง
- amount_
to_ drops - Convert amount to drops
- buffer_
zeroize - Zeroize a buffer
- drops_
to_ amount - Convert amount to drops
- is_
buffer_ equal - Tests two buffers for equality
- is_
buffer_ equal_ 20 - Tests two 20-byte buffers for equality
- is_
buffer_ equal_ 32 - Tests two 32-byte buffers for equality
- is_
txn_ ingoing - Checks whether the transaction is ingoing
- is_
txn_ outgoing - Checks whether the transaction is outgoing
- require
- Rolls back the transaction if the condition is not met
- slice
- Returns a slice of the given data with the specified length
- slice_
mut - Returns a mutable slice of the given data with the specified length