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

docs: update documentation for ToRistrettoPoint opcode #113

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
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
12 changes: 6 additions & 6 deletions src/RFC-0202_TariScriptOpcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,12 @@ pushed to the stack if multiple signature validation succeeds.
In addition to the failures mentioned:
* Fails with `VerifyFailed` if any signature is invalid.

##### ToRistrettoPoint,
##### ToRistrettoPoint
Pops the top element from the stack (either a scalar or a hash), parses it canonically as a Ristretto secret key if possible, computes the corresponding Ristretto public key, and pushes this value to the stack.

Pops the top element from the stack, either a scalar or a hash, calculates the corresponding Ristretto point,
and pushes the result to the stack.

* Fails with `StackUnderflow` if the stack is empty.
* Fails with `IncompatibleTypes` if the stack item is not a valid 32 byte sequence.
* Fails with `StackUnderflow` if the stack is empty.
* Fails with `IncompatibleTypes` if the stack item is not either a scalar or a hash.
* Fails with `InvalidInput` if the stack item cannot be canonically parsed as a Ristretto secret key.

### Miscellaneous

Expand Down Expand Up @@ -653,5 +652,6 @@ and contributions to this RFC.
| 27 Sep 2022 | Add aggregate signatures to transaction inputs and outputs | hansieodendaal |
| 28 Sep 2022 | Minor update to reflect implementation | sdbondi |
| 11 Nov 2022 | Update for code review/audit | hansieodendaal |
| 20 Nov 2023 | Update `ToRistrettoPoint` documentation | AaronFeickert |

[TariScript]: Glossary.md#tariscript
Loading