1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.HashPrefix = void 0;
|
4 | const buffer_1 = require("buffer/");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function bytes(uint32) {
|
12 | const result = buffer_1.Buffer.alloc(4);
|
13 | result.writeUInt32BE(uint32, 0);
|
14 | return result;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | const HashPrefix = {
|
20 | transactionID: bytes(0x54584e00),
|
21 |
|
22 | transaction: bytes(0x534e4400),
|
23 |
|
24 | accountStateEntry: bytes(0x4d4c4e00),
|
25 |
|
26 | innerNode: bytes(0x4d494e00),
|
27 |
|
28 | ledgerHeader: bytes(0x4c575200),
|
29 |
|
30 | transactionSig: bytes(0x53545800),
|
31 |
|
32 | transactionMultiSig: bytes(0x534d5400),
|
33 |
|
34 | validation: bytes(0x56414c00),
|
35 |
|
36 | proposal: bytes(0x50525000),
|
37 |
|
38 | paymentChannelClaim: bytes(0x434c4d00),
|
39 | };
|
40 | exports.HashPrefix = HashPrefix;
|
41 |
|
\ | No newline at end of file |