forked from hyperledger/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtxn_util.py
26 lines (23 loc) · 821 Bytes
/
txn_util.py
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
from collections import OrderedDict
from indy_common.constants import ROLE, CLAIM_DEF_SIGNATURE_TYPE, CLAIM_DEF_SCHEMA_REF
from plenum.common.constants import TXN_TYPE, TARGET_NYM, \
DATA, ENC, RAW, HASH, ALIAS, TXN_TIME, VERKEY
from plenum.common.types import f
def getTxnOrderedFields():
return OrderedDict([
(f.IDENTIFIER.nm, (str, str)),
(f.REQ_ID.nm, (str, int)),
(f.SIG.nm, (str, str)),
(TXN_TIME, (str, int)),
(TXN_TYPE, (str, str)),
(TARGET_NYM, (str, str)),
(VERKEY, (str, str)),
(DATA, (str, str)),
(ALIAS, (str, str)),
(RAW, (str, str)),
(ENC, (str, str)),
(HASH, (str, str)),
(ROLE, (str, str)),
(CLAIM_DEF_SCHEMA_REF, (str, str)),
(CLAIM_DEF_SIGNATURE_TYPE, (str, str))
])