UNPKG

1.63 kBJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.KECCAK256_RLP = exports.KECCAK256_RLP_S = exports.KECCAK256_RLP_ARRAY = exports.KECCAK256_RLP_ARRAY_S = exports.KECCAK256_NULL = exports.KECCAK256_NULL_S = exports.TWO_POW256 = exports.MAX_INTEGER = void 0;
7const Buffer = require('buffer').Buffer;
8const bn_js_1 = __importDefault(require("bn.js"));
9/**
10 * The max integer that this VM can handle
11 */
12exports.MAX_INTEGER = new bn_js_1.default('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16);
13/**
14 * 2^256
15 */
16exports.TWO_POW256 = new bn_js_1.default('10000000000000000000000000000000000000000000000000000000000000000', 16);
17/**
18 * Keccak-256 hash of null
19 */
20exports.KECCAK256_NULL_S = 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470';
21/**
22 * Keccak-256 hash of null
23 */
24exports.KECCAK256_NULL = Buffer.from(exports.KECCAK256_NULL_S, 'hex');
25/**
26 * Keccak-256 of an RLP of an empty array
27 */
28exports.KECCAK256_RLP_ARRAY_S = '1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347';
29/**
30 * Keccak-256 of an RLP of an empty array
31 */
32exports.KECCAK256_RLP_ARRAY = Buffer.from(exports.KECCAK256_RLP_ARRAY_S, 'hex');
33/**
34 * Keccak-256 hash of the RLP of null
35 */
36exports.KECCAK256_RLP_S = '56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421';
37/**
38 * Keccak-256 hash of the RLP of null
39 */
40exports.KECCAK256_RLP = Buffer.from(exports.KECCAK256_RLP_S, 'hex');
41//# sourceMappingURL=constants.js.map
\No newline at end of file