• Jonathan Chappelow's avatar
    crypto: use btcec/v2 for no-cgo (#24533) · 830231c1
    Jonathan Chappelow authored
    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.
    830231c1
Name
Last commit
Last update
..
evm-benchmarks @ 849b3e23 Loading commit data...
fuzzers Loading commit data...
solidity Loading commit data...
testdata @ 092a8834 Loading commit data...
block_test.go Loading commit data...
block_test_util.go Loading commit data...
difficulty_test.go Loading commit data...
difficulty_test_util.go Loading commit data...
gen_btheader.go Loading commit data...
gen_difficultytest.go Loading commit data...
gen_stenv.go Loading commit data...
gen_sttransaction.go Loading commit data...
init.go Loading commit data...
init_test.go Loading commit data...
rlp_test.go Loading commit data...
rlp_test_util.go Loading commit data...
state_test.go Loading commit data...
state_test_util.go Loading commit data...
transaction_test.go Loading commit data...
transaction_test_util.go Loading commit data...