Documentation
¶
Overview ¶
Package bmtpool provides easy access to binary merkle tree hashers managed in as a resource pool.
Index ¶
Constants ¶
View Source
const Capacity = 32
Variables ¶
This section is empty.
Functions ¶
func GetProver ¶ added in v2.8.1
GetProver returns a goroutine-backed Prover from the global prover pool.
func Rebuild ¶ added in v2.8.1
func Rebuild()
Rebuild discards the current pool and constructs a new one reading the latest bmt.SIMDOptIn() value. Must be called exactly once during startup after CLI flag parsing and before the first external Get, so that --use-simd-hashing takes effect and no in-flight hashers are referencing the old pool's tree. The Prover pool is intentionally not rebuilt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.