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))