Keccak256
- 30 Jan 2024
- 1 Minute to read
- DarkLight
- PDF
Keccak256
- Updated on 30 Jan 2024
- 1 Minute to read
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Keccak256 digest is being calculated over given vector of bytes.
See the example below:
use scrypto::prelude::*;
#[blueprint]
mod crypto_example {
struct CryptoScrypto {}
impl CryptoScrypto {
pub fn keccak256_hash(data: Vec<u8>) -> Hash {
let hash = CryptoUtils::keccak256_hash(data);
hash
}
}
}
Was this article helpful?