-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile_keygen_op.mk
78 lines (70 loc) · 3.12 KB
/
Makefile_keygen_op.mk
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
###############################################################################
# Keygen Wallet for generating keys
# and sigunature for unsigned transaction for multisig
###############################################################################
###############################################################################
# create hd key
###############################################################################
# create seed
.PHONY: create-seed
create-seed:
keygen create seed
#seed: 00ySYFfazp+41jyOuLxFb2tWNfIGRmDpGFOBLrneuoQ=
# create hdkey for acounts
.PHONY: create-hdkey
create-hdkey:
keygen create hdkey -account client -keynum 10
keygen create hdkey -account deposit -keynum 10
keygen create hdkey -account payment -keynum 10
keygen create hdkey -account stored -keynum 10
###############################################################################
# import address for ganache
###############################################################################
#.PHONY: import-ganache-key
#import-ganache-key:
# docker compose exec keygen-db mysql -u root -proot -e "$(cat ./scripts/operation/sql/ganache_key.sql)"
###############################################################################
# import private key
###############################################################################
.PHONY: import-privkey
import-privkey:
keygen import privkey -account client
keygen import privkey -account deposit
keygen import privkey -account payment
keygen import privkey -account stored
###############################################################################
# import full-pubkey
###############################################################################
#make filepath=./data/pubkey/auth1_1588399093997165000.csv import-fullpubkey
.PHONY: import-fullpubkey
import-fullpubkey:
keygen import fullpubkey -file ${filepath}
keygen import fullpubkey -file ${filepath}
keygen import fullpubkey -file ${filepath}
keygen import fullpubkey -file ${filepath}
keygen import fullpubkey -file ${filepath}
###############################################################################
# create multisig address
###############################################################################
.PHONY: create-multisig
create-multisig:
keygen create multisig -account deposit
keygen create multisig -account payment
keygen create multisig -account stored
###############################################################################
# export address
###############################################################################
.PHONY: export-address
export-address:
keygen export address -account client
keygen export address -account deposit
keygen export address -account payment
keygen export address -account stored
###############################################################################
# sign on unsigned transaction as first signature
# multisig requireds multiple signature
###############################################################################
#make filepath=./data/tx/deposit/deposit_8_unsigned_1534832793024491932 sign-unsignedtx
.PHONY: sign-unsignedtx
sign-unsignedtx:
keygen sign file ${filepath}