-
Notifications
You must be signed in to change notification settings - Fork 458
/
constants.ts
28 lines (28 loc) 路 1.09 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* Copyright 漏 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*
*/
export const BINARY_ADDRESS_LENGTH = 20;
export const DEFAULT_LISK32_ADDRESS_PREFIX = 'lsk';
export const ED25519_CURVE = 'ed25519 seed';
export const MAX_UINT32 = 4294967295;
export const HARDENED_OFFSET = 0x80000000;
export const HASH_LENGTH = 32;
export const L = 8160; // 32 * 255
export const EMPTY_SALT = Buffer.from(new Array(32).fill(0));
export const EMPTY_BUFFER = Buffer.alloc(0);
export const SHA256 = 'sha256';
export const LISK32_CHARSET = 'zxvcpmbn3465o978uyrtkqew2adsjhfg';
export const LISK32_ADDRESS_LENGTH = 41;
export const MESSAGE_TAG_NON_PROTOCOL_MESSAGE = 'LSK_NPM_';
export const ED25519_PUBLIC_KEY_LENGTH = 32;