Skip to content

small: make derive_user_address() public so solana-contract-examples can use it#581

Merged
ppca merged 3 commits intodevelopfrom
xiangyi/derive_user_addr_public
Oct 30, 2025
Merged

small: make derive_user_address() public so solana-contract-examples can use it#581
ppca merged 3 commits intodevelopfrom
xiangyi/derive_user_addr_public

Conversation

@ppca
Copy link
Copy Markdown
Contributor

@ppca ppca commented Oct 28, 2025

This also includes adding serde feature to alloy-consensus so solana-contract-examples can use it

@ppca ppca changed the title small: make derive_user_address() public so other packages can use it small: make derive_user_address() public so solana-contract-examples can use it Oct 28, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 exposes the derive_user_address() function for external use by solana-contract-examples and enables the serde feature for alloy-consensus to support serialization requirements.

  • Made derive_user_address() function public in the chain-signatures node
  • Enabled serde feature for alloy-consensus dependency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
chain-signatures/node/src/sign_bidirectional.rs Changed derive_user_address() visibility from private to public
Cargo.toml Added serde feature to alloy-consensus dependency specification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

secp256k1 = "0.28.2"
rlp = "0.5"
alloy-consensus = "1.0.38"
alloy-consensus = { version = "1.0.38", features = ["serde"] }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did we have to add this new feature flag if we're only just making derive_user_address public?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes this is needed otherwise solana-contract-examples won't compile

@ppca ppca merged commit a957d81 into develop Oct 30, 2025
3 checks passed
@ppca ppca deleted the xiangyi/derive_user_addr_public branch October 30, 2025 14:52
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