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

fix: update ToRistrettoPoint handling #5973

Merged
merged 1 commit into from Nov 21, 2023

Conversation

AaronFeickert
Copy link
Collaborator

@AaronFeickert AaronFeickert commented Nov 20, 2023

Description

Updates the handling of the ToRistrettoPoint opcode.

Closes #5818.

Motivation and Context

The ToRistrettoPoint opcode now requires that stack input be the canonical encoding of a Ristretto secret key. This PR updates the opcode documentation and adds a test for proper handling of invalid encoding. It also corrects the error returned on invalid stack input.

There is a separate PR that updates the RFC documentation.

How Has This Been Tested?

Existing tests pass. A modified test passes.

What process can a PR reviewer use to test or verify this change?

Check that the updated documentation reflects the opcode handling. Check that the modified test correctly detects invalid input. Check that the error returned on invalid input is correct.

@AaronFeickert AaronFeickert changed the title test: update ToRistrettoPoint documentation and test test: update ToRistrettoPoint handling Nov 20, 2023
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Nov 20, 2023
Copy link

Test Results (CI)

1 254 tests   1 254 ✔️  11m 20s ⏱️
     39 suites         0 💤
       1 files           0

Results for commit b7caf2b.

Copy link

Test Results (Integration tests)

31 tests   31 ✔️  14m 1s ⏱️
11 suites    0 💤
  2 files      0

Results for commit b7caf2b.

@AaronFeickert AaronFeickert changed the title test: update ToRistrettoPoint handling fix: update ToRistrettoPoint handling Nov 20, 2023
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Nov 21, 2023
@SWvheerden SWvheerden merged commit 12e84f4 into tari-project:development Nov 21, 2023
15 checks passed
@AaronFeickert AaronFeickert deleted the opcode-point branch November 21, 2023 15:10
sdbondi pushed a commit to sdbondi/tari that referenced this pull request Nov 27, 2023
Description
---
Updates the handling of the `ToRistrettoPoint` opcode.

Closes tari-project#5818.

Motivation and Context
---
The `ToRistrettoPoint` opcode now requires that stack input be the
canonical encoding of a Ristretto secret key. This PR updates the opcode
documentation and adds a test for proper handling of invalid encoding.
It also corrects the error returned on invalid stack input.

There is a [separate PR](tari-project/rfcs#113)
that updates the RFC documentation.

How Has This Been Tested?
---
Existing tests pass. A modified test passes.

What process can a PR reviewer use to test or verify this change?
---
Check that the updated documentation reflects the opcode handling. Check
that the modified test correctly detects invalid input. Check that the
error returned on invalid input is correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve documentation and intent for ToRistrettoPoint functionality
3 participants