Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Calc XRPL Check ID

node v10.24.1
version: 1.0.0
endpointsharetweet
const crypto = require('crypto') const ra = require('ripple-address-codec') const a = Buffer.from('0043', 'hex') const b = ra.decodeAccountID('rtaBqey87MpBcbrbv3qjtNCUchwag2vMv') const c = Buffer.alloc(4) c.writeUInt32BE(225) // Create Sequence const all = Buffer.concat([a, b, c]) console.log(all) const sha = crypto.createHash('sha512').update(all) const result = sha.digest('hex') console.log(result.toUpperCase().slice(0, 64))
Loading…

no comments

    sign in to comment