1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.HashPrefix = void 0;
|
4 | const utils_1 = require("./utils");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function bytes(uint32) {
|
12 | const result = new Uint8Array(4);
|
13 | (0, utils_1.writeUInt32BE)(result, 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 |