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

reenable tests and adjust cycles in rust threshold Schnorr #1015

Merged
merged 5 commits into from
Oct 14, 2024

Conversation

altkdf
Copy link
Contributor

@altkdf altkdf commented Oct 7, 2024

Pocket IC now supports threshold BIP340 and Ed25519, so the tests can be (re)enabled.

Pocket IC has two (implementation) limitations though:

  1. It does not support BIP340 messages that are not 32 bytes long.
  2. There is a bug that renames the dfx_test_key, so we have to temporarily use another key name, which is not very important though.

This PR also adjusts cycles attached to the sign_with_schnorr call. The adjusted amount of cycles is sufficient to make a call to a 34-node subnet, which is currently the case on mainnet for the production key. Note that overpaid cycles are reimbursed to the caller, which would be relevant for calls to smaller subnets like currently the case for the production test key.

Closes CRP-2585.

Closes CRP-2604.

@altkdf altkdf changed the title reenable tests in rust threshold Schnorr reenable tests and adjust cycles in rust threshold Schnorr Oct 7, 2024
@altkdf altkdf self-assigned this Oct 7, 2024
@altkdf altkdf marked this pull request as ready for review October 7, 2024 15:21
@altkdf altkdf requested review from a team as code owners October 7, 2024 15:21
Copy link
Member

@fspreiss fspreiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @altkdf!

@altkdf altkdf merged commit 89ca125 into alex/x509 Oct 14, 2024
4 checks passed
@altkdf altkdf deleted the alex/reenable-tests-in-rust-tschnorr branch October 14, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants