mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 11:45:49 +00:00
The now-deprecated ripple-hashes library provided a number of hash functions for users to compute the hashes/IDs for various XRP Ledger objects: * Transactions (to generate transaction hashes, also known as IDs) * Transaction signing hashes (to sign transactions) * Ledger Object IDs (to look up specific ledger objects in a ledger's state tree; see https://xrpl.org/ledger-object-ids.html) This commit exports these utility methods from ripple-lib as static methods. Access them on the RippleAPI class. Example: import {RippleAPI} from 'ripple-lib' const hash = RippleAPI.computeBinaryTransactionHash(...)