Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617
  1. // Antireplay package has cache implementations that are effective against
  2. // replay attacks.
  3. //
  4. // To understand more about replay attacks, please read documentation for
  5. // [mtglib.AntiReplayCache] interface. This package has a list of some
  6. // implementations of this interface.
  7. package antireplay
  8. const (
  9. // DefaultStableBloomFilterMaxSize is a recommended byte size for a stable
  10. // bloom filter.
  11. DefaultStableBloomFilterMaxSize = 1024 * 1024 // 1MiB
  12. // DefaultStableBloomFilterErrorRate is a recommended default error rate for a
  13. // stable bloom filter.
  14. DefaultStableBloomFilterErrorRate = 0.001
  15. )