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

Schnorr signature with specific nonce? #73

Open
benthecarman opened this issue Sep 29, 2023 · 1 comment
Open

Schnorr signature with specific nonce? #73

benthecarman opened this issue Sep 29, 2023 · 1 comment

Comments

@benthecarman
Copy link

I am working on a dlc oracle project and to do so I need to create a signature with a specific nonce / k value. However, the only functions that are exposed are ones that use random data to compute the signature's nonce.

We had this functionality in the past for bitcoin-s, has the been removed or not ported to rust?

@apoelstra
Copy link
Contributor

You can do this by using the FFI functions from secp256k1-sys directly. I don't think we've ever exposed this functionality directly.

If you were willing to PR to rust-secp adding an interface to provide a custom nonce function for schnorr signatures, I'd be happy to accept that.

Schnorr signatures are also part of rust-secp256k1, not rust-secp256k1-zkp. Though possibly many years ago this was different.

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

No branches or pull requests

2 participants