nimiq_blake2b
Nimiq-style Blake2b hash function implementation for Gleam.
gleam add nimiq_blake2b@1
import nimiq/blake2b
pub fn main() -> Nil {
"Nimiq rocks!"
|> bit_array.from_string()
|> blake2b.hash()
|> bit_array.base16_encode()
// -> "E493EE724B7D9D0AFE079DD7236DA36AB9DC5EF446AC16E52F232CF38A2CCB2F"
}
Further documentation can be found at https://hexdocs.pm/nimiq_blake2b.
Development
gleam run # Run the project
gleam test # Run the tests