@payburner/keyburner-core
Version:
KeyburnerJs -- A library to enable arbitrary transaction signing and verification using XRPL-compatible keys and addresses.
22 lines • 702 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HashPrefix = void 0;
function bytes(uint32) {
const result = Buffer.alloc(4);
result.writeUInt32BE(uint32);
return result;
}
const HashPrefix = {
transactionID: bytes(0x54584e00),
transaction: bytes(0x534e4400),
accountStateEntry: bytes(0x4d4c4e00),
innerNode: bytes(0x4d494e00),
ledgerHeader: bytes(0x4c575200),
transactionSig: bytes(0x53545800),
transactionMultiSig: bytes(0x534d5400),
validation: bytes(0x56414c00),
proposal: bytes(0x50525000),
paymentChannelClaim: bytes(0x434c4d00),
};
exports.HashPrefix = HashPrefix;
//# sourceMappingURL=hash-prefixes.js.map