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

crypto: use btcec/v2 for no-cgo #24533

Merged
merged 1 commit into from Mar 16, 2022
Merged

crypto: use btcec/v2 for no-cgo #24533

merged 1 commit into from Mar 16, 2022

Commits on Mar 14, 2022

  1. crypto: use btcec/v2 for no-cgo

    This updates the no-cgo implementations in the crypto package to use
    the github.com/btcsuite/btcd/btcec/v2 module instead of the older btcec
    package that was part of the main github.com/btcsuite/btcd module.
    
    name                   old time/op  new time/op  delta
    EcrecoverSignature-32   198µs ± 0%   144µs ± 0%  -27.11%
    VerifySignature-32      177µs ± 0%   128µs ± 0%  -27.44%
    DecompressPubkey-32    20.9µs ± 0%  10.1µs ± 0%  -51.51%
    
    Use (*ModNScalar).IsOverHalfOrder instead of math/big.Int when checking
    for malleable signatures.
    chappjc committed Mar 14, 2022
    Copy the full SHA
    b3402c4 View commit details
    Browse the repository at this point in the history