Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ecr opcode is no longer supported #513

Merged
merged 2 commits into from
Aug 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ecr to eck1 without table update
  • Loading branch information
Braqzen committed Aug 24, 2023
commit 931ff6fa3eb38bdd8c4daa0bc3da5bebee7d39f4
6 changes: 3 additions & 3 deletions src/fuel-vm/instruction-set.md
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 2243,7 @@ All these instructions advance the program counter `$pc` by `4` after performing
|-------------|-----------------------------------------------------------------------------------------------------------------------------|
| Description | The 64-byte public key (x, y) recovered from 64-byte signature starting at `$rB` on 32-byte message hash starting at `$rC`. |
| Operation | ```MEM[$rA, 64] = ecrecover_k1(MEM[$rB, 64], MEM[$rC, 32]);``` |
| Syntax | `ecr $rA, $rB, $rC` |
| Syntax | `eck1 $rA, $rB, $rC` |
| Encoding | `0x00 rA rB rC -` |
| Notes | |

Expand All @@ -2269,7 2269,7 @@ To get the address from the public key, hash the public key with [SHA-2-256](../
|-------------|-----------------------------------------------------------------------------------------------------------------------------|
| Description | The 64-byte public key (x, y) recovered from 64-byte signature starting at `$rB` on 32-byte message hash starting at `$rC`. |
| Operation | ```MEM[$rA, 64] = ecrecover_r1(MEM[$rB, 64], MEM[$rC, 32]);``` |
| Syntax | `ecr $rA, $rB, $rC` |
| Syntax | `eck1 $rA, $rB, $rC` |
xgreenx marked this conversation as resolved.
Show resolved Hide resolved
| Encoding | `0x00 rA rB rC -` |
| Notes | |

Expand All @@ -2295,7 2295,7 @@ To get the address from the public key, hash the public key with [SHA-2-256](../
|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| Description | Verification recovered from 32-byte public key starting at `$rA` and 64-byte signature starting at `$rB` on 32-byte message hash starting at `$rC`. |
| Operation | ```ed19verify(MEM[$rA, 32], MEM[$rB, 64], MEM[$rC, 32]);``` |
| Syntax | `ecr $rA, $rB, $rC` |
| Syntax | `eck1 $rA, $rB, $rC` |
xgreenx marked this conversation as resolved.
Show resolved Hide resolved
| Encoding | `0x00 rA rB rC -` |
| Notes | |

Expand Down