-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/node 4876 - using both chains in some tests ( adapt end user to support pkps in both chains ) #42
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
Feature/node 4876 - using both chains in some tests ( adapt end user to support pkps in both chains ) #42
Conversation
…PKP assertions across chain This is incomplete.
…datil-naga-assertions
…PKP assertions across chain This is incomplete.
…-Protocol/lit-peer into hwrdtm/datil-naga-assertions
…l' into feature/node-4876-adapt-the-end-user-to-support-pkps-in-both-chains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adapts the end-user concept to support PKPs (Programmable Key Pairs) in both Naga and Datil chains. The main changes include:
- Refactored key_set_id handling from
Option<String>to&strfor more consistent parameter passing - Added Datil contract integration and authentication support
- Introduced keyset utility functions for managing default keysets
- Updated string formatting throughout the codebase to use inline format syntax
- Added support for Datil PKP operations in tests
Reviewed changes
Copilot reviewed 145 out of 147 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| rust/lit-node/lit-node/src/utils/keysets.rs | New utility module for keyset management including default keyset retrieval |
| rust/lit-node/lit-node/src/utils/datil_contract.rs | New module for Datil contract interactions |
| rust/lit-node/lit-node/src/pkp/auth/datil.rs | New authentication module for Datil PKPs |
| rust/lit-node/lit-node/src/tss/common/curve_state.rs | Refactored to use non-optional key_set_id |
| rust/lit-node/lit-node/src/endpoints/web_client.rs | Updated to use default keyset utilities |
| rust/lit-node/lit-node/src/pkp/utils.rs | Added Datil-specific pubkey routing logic |
| rust/lit-node/lit-node-testnet/src/testnet/datil/contracts.rs | New Datil contracts wrapper |
| Multiple test files | Updated to pass key_set_id parameters and use new APIs |
| Multiple files | String formatting updates (cosmetic changes) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…upport-pkps-in-both-chains
…pport-pkps-in-both-chains
* update to determine key set for recovery Signed-off-by: Michael Lodder <[email protected]> * add test when no key set is on chain Signed-off-by: Michael Lodder <[email protected]> * update test Signed-off-by: Michael Lodder <[email protected]> --------- Signed-off-by: Michael Lodder <[email protected]> Co-authored-by: Brendon <[email protected]>
WHAT
Initially meant to just adapt the
end-userconcept, there was no way to test without actually making changes directly in the nodes and add in the endpoints.