This defines a shortTxHash method that generates a short 64-bit hash from the standard 128-bit hash. It accomplishes this by using the SipHash-2-4 hash function. This is being introduced to track the transaction associated with a signature cache entry at a reduced memory overhead.
23 lines
745 B
Modula-2
23 lines
745 B
Modula-2
module github.com/decred/dcrd/txscript/v3
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
github.com/dchest/siphash v1.2.1
|
|
github.com/decred/dcrd/chaincfg/chainhash v1.0.2
|
|
github.com/decred/dcrd/chaincfg/v3 v3.0.0-20200215031403-6b2ce76f0986
|
|
github.com/decred/dcrd/crypto/ripemd160 v1.0.0
|
|
github.com/decred/dcrd/dcrec v1.0.0
|
|
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.0
|
|
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-20200215031403-6b2ce76f0986
|
|
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200215031403-6b2ce76f0986
|
|
github.com/decred/dcrd/wire v1.3.0
|
|
github.com/decred/slog v1.0.0
|
|
)
|
|
|
|
replace (
|
|
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
|
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
|
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
|
)
|