FILE / ScuroNeko/mtg

antireplay/init.go

Исходный файл и его история в репозитории.
FILE ef55fbba150f514f693ddd96356daef5f610ff44
Files
mtg/antireplay/init.go
T

18 lines
606 B
Go

// Antireplay package has cache implementations that are effective
// against replay attacks.
//
// To understand more about replay attacks, please read documentation
// for mtglib.AntiReplayCache interface. This package has a list of some
// implementations of this interface.
package antireplay
const (
// DefaultStableBloomFilterMaxSize is a recommended byte size for a
// stable bloom filter.
DefaultStableBloomFilterMaxSize = 1024 * 1024 // 1MiB
// DefaultStableBloomFilterErrorRate is a recommended default error
// rate for a stable bloom filter.
DefaultStableBloomFilterErrorRate = 0.001
)