Skip to main content

Module hash

Module hash 

Source
Expand description

XRPL hashing.

Almost every identifier in XRPL (the hash of a ledger, a transaction, a tree node, the signed data of a validation) is SHA-512Half: the first 32 bytes of SHA-512 over the data preceded by a four-byte domain prefix. The prefix separates the spaces: the same bytes hashed as a transaction and as a tree node give different hashes.

Enums§

HashPrefix
Hashing domain prefixes.

Functions§

sha512_half
SHA-512Half: the first 32 bytes of SHA-512 over the data.
sha512_half_prefixed
SHA-512Half over the data with a domain prefix. This is how XRPL computes hashes.