Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Digest proxy example #73

Closed
wants to merge 1 commit into from
Closed

Conversation

shamatar
Copy link
Contributor

Proxy digest to sign a hash, but use another hashing algorithm for deterministic nonce generation.

@shamatar
Copy link
Contributor Author

For some reason

#[test]
    fn recover_signature_from_message()

is broken (and it was in the original I suppose), but I didn't dig into it.

Also, I didn't check for any test vector for nonce generation compared to libsecp256k1 (C library), but from high level those should immediately match.

@shamatar shamatar changed the title example Digest proxy example Sep 28, 2020
@gakonst
Copy link
Owner

gakonst commented Sep 30, 2020

Fixed the test, refactored and cherry-picked on #72. Thanks a lot @shamatar!!

@gakonst gakonst closed this Sep 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants