btcd/btcec/schnorr
Olaoluwa Osuntokun b7a4622a6b
btcec+chaincfg: use pre-computed tag hash values
In this commit, we optimize our signature implementation slightly, by
defining pre-computed sha256(tag) variables for the commonly used
values.  If a tag matches this, then we'll use that hash value to avoid
an extra round of hashing.
2022-01-31 14:55:08 -08:00
..
bench_test.go btcec/schnorr: add benchmarks for sign/verify 2022-01-31 14:40:35 -08:00
error.go btcec/v2/schnorr: add initial BIP-340 schnorr sig implementation 2022-01-31 14:25:47 -08:00
pubkey.go btcec/v2/schnorr: add initial BIP-340 schnorr sig implementation 2022-01-31 14:25:47 -08:00
signature.go btcec+chaincfg: use pre-computed tag hash values 2022-01-31 14:55:08 -08:00
signature_test.go btcec/v2/schnorr: add initial BIP-340 schnorr sig implementation 2022-01-31 14:25:47 -08:00