Skip to content

Add a selection of private headers to the secp256k1 package#35

Merged
mathbunnyru merged 2 commits intomasterfrom
sec256k1_private
Feb 4, 2026
Merged

Add a selection of private headers to the secp256k1 package#35
mathbunnyru merged 2 commits intomasterfrom
sec256k1_private

Conversation

@mathbunnyru
Copy link
Collaborator

https://github.com/XRPLF/mpt-crypto library uses some private headers of secp256k1.
So, I copy them (and their dependencies) to include/private.

This allows conan to be used for secp256k1 library

@mathbunnyru mathbunnyru requested a review from bthomee February 4, 2026 15:37
@mathbunnyru mathbunnyru changed the title Add some private headers from to secp256k1 lib [I'm sorry] Add some private headers to secp256k1 package [I'm sorry] Feb 4, 2026
self,
header,
src=os.path.join(self.source_folder, "src"),
dst=os.path.join(self.package_folder, "include", "private")
Copy link

@bthomee bthomee Feb 4, 2026

Choose a reason for hiding this comment

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

Can these headers just be moved to another directory without breaking the compilation? I would've expected that the secp256k1 build would fail as #include "some_file.h" would now be in #include "private/some_file.h".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried it, unfortunately, it doesn't compile.
And I like this way better, because we don't change in any way how the binary is built.

Copy link

Choose a reason for hiding this comment

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

I meant to say: "does the way in which you do this, as presented in this PR, result in compilation failures?" but you now answered that question 🙂

@mathbunnyru mathbunnyru requested a review from bthomee February 4, 2026 17:15
@bthomee bthomee changed the title Add some private headers to secp256k1 package [I'm sorry] Add a selection of private headers to the secp256k1 package Feb 4, 2026
@mathbunnyru mathbunnyru merged commit 47f63d0 into master Feb 4, 2026
1 check passed
@mathbunnyru mathbunnyru deleted the sec256k1_private branch February 4, 2026 17:31
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