You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/vm-instructions/acki-nacki-vm-instructions.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,4 @@
1
-
# Gosh VM Instructions
2
-
3
-
1
+
# Acki Nacki VM Instructions
4
2
5
3
## MINTECC (C726)
6
4
@@ -34,7 +32,7 @@ Mint some VMSHELL tokens, allowed by available credit in Dapp Config for this Da
34
32
Input: amount of nanoVMSHELL to mint
35
33
```
36
34
37
-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L842)
35
+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L842)
38
36
39
37
## CALCBKREWARD (С729)
40
38
@@ -50,7 +48,7 @@ Input: params of bkroot state:
50
48
uint128 epochDuration
51
49
```
52
50
53
-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L843)
51
+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L843)
54
52
55
53
## CALCMINSTAKE (С730)
56
54
@@ -64,7 +62,7 @@ Input: params of bkroot state:
64
62
uint128 numberOfNeededActiveBlockKeeper
65
63
```
66
64
67
-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/a58e859e68e14a17a8acd2f142d260127a0a3f2d/tvm_assembler/src/simple.rs#L844)
65
+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L844)
68
66
69
67
## VERGRTH16 (С731)
70
68
@@ -107,4 +105,21 @@ Outputs:
107
105
```
108
106
109
107
Note: There is: zkaddr = Poseidon(JWT.stable\_id, JWT.iss, User salt password), where JWT.stable\_id and User salt password are secrets. ephimeral\_pub\_key is a temporary key that will be used sign transactions (i.e. the related secret key) till Unix timestamp max\_epoch (ephimeral\_pub\_key is embedded into JWT.nonce and JWT is a kind of TLS certificate for ephimeral\_pub\_key). modulus is RSA JWK public fresh modulus published by OpenId provider (the JWK is used to sign JWT tokens). iss\_base\_64, index\_mod\_4 is JWT public data describing OpenId provider. header\_base\_64 is JWT public data containing “kid” (key id) of JWK.\
110
-
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/vrgth_fixes_and_tests/tvm_assembler/src/simple.rs#L846)
108
+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L846)
109
+
110
+
## RUNWASM
111
+
112
+
Instruction allows arbitrary pre-compiled wasm code to be executed directly by the node.
113
+
114
+
```
115
+
Input:
116
+
wasmHash,
117
+
wasmArgs,
118
+
wasmFunction,
119
+
wasmModule,
120
+
wasmBinary
121
+
```
122
+
123
+
\
124
+
You can find official documentation [here](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_vm/WASM.md) and example project [here](https://github.com/tvmlabs/tvm-sdk/blob/main/examples/wasm/WASM_EXAMPLES.md)\
125
+
[link to the opcode](https://github.com/tvmlabs/tvm-sdk/blob/main/tvm_assembler/src/simple.rs#L853)
0 commit comments