xrpl.js icon indicating copy to clipboard operation
xrpl.js copied to clipboard

Add hashing for all ledger entry types

Open dangell7 opened this issue 7 months ago • 1 comments

Batch can sometimes require you to know the hash of the ledger entry object before processing therefore I would recommend we add the hashing functionality for all ledger objects into this repo so that developers don't need to build their own hashing functions.

dangell7 avatar Jun 06 '25 20:06 dangell7

There are multiple examples here but it doesn't cover all of them.

https://github.com/XRPLF/xrpl.js/blob/main/packages/xrpl/src/utils/hashes/index.ts

To create the new ones go to the Indexes.cpp file and fill in the ones that are missing.

For the LedgerSpaces.ts scroll to the top of the Indexes.cpp file and you will see them.

dangell7 avatar Sep 03 '25 18:09 dangell7