Algorithms
BLAKE2b-224
BLAKE2b with a 28-byte output. Cardano's hash of payment and stake keys and scripts
Hash / Cryptographic
BLAKE2b-224
BLAKE2b at 28 bytes, for keys and scripts.
- Digest
- 224-bit · 28 bytes
- HMAC
- no key mode
- Security
- 112-bit collision resistance
- Used by
- Cardano
1 option, 0 required
Sample
- hex
- 42d1854b7d69e3b57c64fcc7b4f64171b47dff43fba6ac0499ff437f
- base64
- QtGFS31p47V8ZPzHtPZBcbR9/0P7pqwEmf9Dfw==
Options
Access
- Create
create("blake2b-224") - CLI
hashes blake2b-224 'hello world' - Tryplayground with the sample above
- Kinsha256, sha384, sha512, sha512-half +11
The 28-byte BLAKE2b behind Cardano's addresses: payment key hashes, stake key hashes, script hashes. Like BLAKE2b-256, the length is part of the computation, not a cut afterwards.
create("blake2b-224").hash("").digest;
// "836cc68931c2e4e3e838602eca1902591d216837bafddfe6f0c8cb07"
Hash the key's bytes, so a key you hold as hex goes in through Uint8Array.fromHex or inputEncoding: "hex". No HMAC mode.