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

Re-export secp256k1_zkp #177

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Conversation

benthecarman
Copy link
Contributor

Re-exports secp256k1_zkp since a lof of the types are leaked in the API and just makes it easier to get from rust-dlc instead of having to import the library yourself. Needed to enable the rand-std flag for external use too.

Also makes read_dlc_message public so you can manually parse dlc messages externally.

@Tibo-lg
Copy link
Contributor

Tibo-lg commented Nov 30, 2023

Needed to enable the rand-std flag for external use too.

I think re-exporting secp-zkp is a good idea (bitcoin could be as well), but I'm not sure about adding features that are used only for outside purpose. Though it's inconvenient I think the proper way is for you to import it in your project and enable the features you need.

@benthecarman
Copy link
Contributor Author

benthecarman commented Nov 30, 2023

the rand-std feature is a bug from #137 I believe, before it was enabled and I missed adding it when in std mode

EcdsaAdaptorSignature::encrypt needs the flag

https://github.com/p2pderivatives/rust-dlc/pull/137/files#diff-3d52bd71fddcc13ec15ba0d38a634ba67b659bae3dc76109541cafe51d5a36efL14

@bennyhodl
Copy link
Contributor

tACK

Master, nor 0.4, would compile without this

@Tibo-lg
Copy link
Contributor

Tibo-lg commented Dec 4, 2023

the rand-std feature is a bug from #137 I believe, before it was enabled and I missed adding it when in std mode

EcdsaAdaptorSignature::encrypt needs the flag

https://github.com/p2pderivatives/rust-dlc/pull/137/files#diff-3d52bd71fddcc13ec15ba0d38a634ba67b659bae3dc76109541cafe51d5a36efL14

Got it SGTM then.

@Tibo-lg Tibo-lg merged commit 6b5d0da into p2pderivatives:master Dec 4, 2023
54 checks passed
@benthecarman benthecarman deleted the rand-std branch December 4, 2023 04:48
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