Skip to content

test: use threshold signing in end-to-end tests#114

Merged
lpahlavi merged 22 commits intomainfrom
lpahlavi/XC-317-teddsa-in-e2e-tests
May 23, 2025
Merged

test: use threshold signing in end-to-end tests#114
lpahlavi merged 22 commits intomainfrom
lpahlavi/XC-317-teddsa-in-e2e-tests

Conversation

@lpahlavi
Copy link
Contributor

@lpahlavi lpahlavi commented May 19, 2025

(XC-317) Instead of signing the transaction locally in end-to-end tests, sign using threshold EdDSA using the new sol_rpc_client method.

@lpahlavi lpahlavi force-pushed the lpahlavi/XC-317-teddsa-in-e2e-tests branch from 59ccc0a to e80bbef Compare May 19, 2025 15:07
@lpahlavi lpahlavi force-pushed the lpahlavi/XC-317-teddsa-in-e2e-tests branch from e80bbef to 409a74b Compare May 20, 2025 08:38
@lpahlavi lpahlavi changed the base branch from main to lpahlavi/XC-317-client-method-to-sign-transaction May 20, 2025 08:38
@lpahlavi lpahlavi force-pushed the lpahlavi/XC-317-teddsa-in-e2e-tests branch from 409a74b to 29d5fe1 Compare May 20, 2025 09:21
@lpahlavi lpahlavi force-pushed the lpahlavi/XC-317-teddsa-in-e2e-tests branch from 435cbfa to be65c11 Compare May 21, 2025 13:46
@lpahlavi lpahlavi marked this pull request as ready for review May 21, 2025 14:13
@lpahlavi lpahlavi requested a review from a team as a code owner May 21, 2025 14:13
@lpahlavi lpahlavi changed the title test: use tEdDSA in end-to-end tests test: use threshold signing in end-to-end tests May 21, 2025
Base automatically changed from lpahlavi/XC-317-client-method-to-sign-transaction to main May 22, 2025 16:08
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is some minimal refactoring not strictly related to this PR here, but I thought it was not worth its own PR.

@lpahlavi lpahlavi requested a review from gregorydemay May 23, 2025 06:14
Copy link
Contributor

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @lpahlavi ! Only a very minor comment

Comment on lines -180 to -181
SOLANA_SENDER_PRIVATE_KEY_BYTES: ${{ secrets.SOLANA_SENDER_PRIVATE_KEY_BYTES }}
SOLANA_RECEIVER_PRIVATE_KEY_BYTES: ${{ secrets.SOLANA_RECEIVER_PRIVATE_KEY_BYTES }}
Copy link
Contributor

Choose a reason for hiding this comment

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

nice! 🎉

}
// Get the pubkey of the sender, which is derived from the given root Ed25519 key, and the
// canister ID of the wallet canister (through which all calls are forwarded).
let (sender_pubkey, _) =
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: let's add an assertion that the sender_pubkey is some concrete public key to ensure that this remains stable, e.g.

assert_eq!(sender_pubkey, pubkey!("..."))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea! Done.

@lpahlavi lpahlavi merged commit 13a8099 into main May 23, 2025
12 checks passed
@lpahlavi lpahlavi deleted the lpahlavi/XC-317-teddsa-in-e2e-tests branch May 23, 2025 12:18
@github-actions github-actions bot mentioned this pull request Jul 31, 2025
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.

3 participants