Skip to content

Commit

Permalink
Update documentation for ToRistrettoPoint opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeickert committed Nov 20, 2023
1 parent 38e75a2 commit 7c8bb00
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 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

0 comments on commit 7c8bb00

Please sign in to comment.