-
Notifications
You must be signed in to change notification settings - Fork 458
/
constants.ts
26 lines (24 loc) 路 1.12 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
/*
* Copyright 漏 2021 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.
*/
import { utils } from '@liskhq/lisk-cryptography';
/**
* The transaction tag is used during the signature creation to create unique signatures for transactions.
*
* The tag for transactions is `LSK_TX` as defined in the Lisk protocol.
* For more information, check out the corresponding LIPs.
*
* @see [LIP 0037 - Use message tags and chain identifiers for signatures](https://github.com/LiskHQ/lips/blob/main/proposals/lip-0037.md) and
* @see [LIP 0068 - Define new transaction schema](https://github.com/LiskHQ/lips/blob/main/proposals/lip-0068.md) for more information about message tags.
*/
export const TAG_TRANSACTION = utils.createMessageTag('TX');