forked from interfacerproject/zenflows-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keypairoomClientRecreateKeys.ts
executable file
·64 lines (47 loc) · 1.8 KB
/
keypairoomClientRecreateKeys.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
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
//ts
const keypairoomClientRecreateKeys = () => {
return `
Scenario 'ecdh': Create the key
Scenario 'ethereum': Create key
Scenario 'reflow': Create the key
Scenario 'schnorr': Create the key
Scenario 'eddsa': Create the key
# here we load the seed as a mnemonic
Given I have a 'mnemonic' named 'seed'
# SKs generation
# In this flow the order should NOT be changed
When I create the hash of 'seed'
When I rename the 'hash' to 'seed.root'
When I create the hash of 'seed.root'
When I rename the 'hash' to 'seed.ecdh'
When I create the hash of 'seed.ecdh'
When I rename the 'hash' to 'seed.eddsa'
When I create the hash of 'seed.eddsa'
When I rename the 'hash' to 'seed.ethereum'
When I create the hash of 'seed.ethereum'
When I rename the 'hash' to 'seed.reflow'
When I create the hash of 'seed.reflow'
When I rename the 'hash' to 'seed.schnorr'
When I create the ecdh key with secret key 'seed.ecdh'
When I create the eddsa key with secret key 'seed.eddsa'
When I create the ethereum key with secret key 'seed.ethereum'
When I create the reflow key with secret key 'seed.reflow'
When I create the schnorr key with secret key 'seed.schnorr'
# PKs generation
When I create the ecdh public key
When I create the eddsa public key
When I create the ethereum address
When I create the reflow public key
When I create the schnorr public key
# This prints the keyring containing the SKs
Then print the 'keyring'
# This prints the PKs, one object each
Then print the 'ecdh public key'
Then print the 'eddsa public key'
Then print the 'ethereum address'
Then print the 'reflow public key'
Then print the 'schnorr public key'
# This prints the seed for the private keys as mnemonic
Then print the 'seed' as 'mnemonic'
`}
export default keypairoomClientRecreateKeys()