-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgpp-sawroom-sample-debug-inplace.yml
More file actions
38 lines (30 loc) · 1.16 KB
/
gpp-sawroom-sample-debug-inplace.yml
File metadata and controls
38 lines (30 loc) · 1.16 KB
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
zenchain: 1.0
mode: debug
name: sawroom-blockchain
start: single-random.zen
blocks:
single-random.zen:
zenContent: |
rule check version 1.0.0
Scenario simple: Generate a random password
Given nothing
When I create the random object of '128' bits
When I rename the 'random_object' to 'myRandom'
Then print the 'myRandom'
next: sawroom-store-secret-message.zen
sawroom-store-secret-message.zen:
zenContent: |
Rule unknown ignore
Scenario 'ecdh': Encrypt a message with the password
Given that I have a sawroom endpoint named 'sawroomEndpoint'
Given that I have a 'string' named 'password'
Given that I have a 'string' named 'myRandom'
When I encrypt the secret message 'myRandom' with 'password'
Then print the 'secret_message'
Then print the 'password'
Then I ask Sawroom to store the data named 'secret_message' into the tag 'transactionId'
keysFile: sawroom-store-secret-message-input.keys
next: sawroom-read-secret-message.zen
sawroom-read-secret-message.zen:
zenFile: sawroom-read-secret-message.zen
keysFile: sawroom-read-secret-message-input.keys