Versions in this module Expand all Collapse all v0 v0.0.2 Sep 17, 2024 v0.0.1 Aug 21, 2024 Changes in this version + const Base32EncoderID + const Base58EncoderID + const Base64EncoderID + const EncoderModulus + const EnglishEncoderID + const GzipEncoderID + const HexEncoderID + const MaxN + const NoEncoderID + const PNGEncoderID + var EncoderMap = map[uint64]Encoder + var FastEncoderMap = map[uint64]Encoder + var Nop = NoEncoder + var PNG = PNGEncoder + var TrafficEncoderFS = PassthroughEncoderFS + var TrafficEncoderMap = map[uint64]*traffic.TrafficEncoder + func B58Decode(b string) []byte + func B58Encode(b []byte) string + func GunzipBuf(data []byte) []byte + func GzipBuf(data []byte) ([]byte, error) + func GzipBufBestCompression(data []byte) []byte + func RemoveTrafficEncoder(name string) error + func SaveTrafficEncoder(name string, wasmBin []byte) error + func SetEnglishDictionary(dictionary []string) + func SumWord(word string) int + func UUID() string + type Base32 struct + func (e Base32) Decode(data []byte) ([]byte, error) + func (e Base32) Encode(data []byte) ([]byte, error) + type Base58 struct + func (e Base58) Decode(data []byte) ([]byte, error) + func (e Base58) Encode(data []byte) ([]byte, error) + type Base64 struct + func (e Base64) Decode(data []byte) ([]byte, error) + func (e Base64) Encode(data []byte) ([]byte, error) + type Encoder interface + Decode func([]byte) ([]byte, error) + Encode func([]byte) ([]byte, error) + func EncoderFromNonce(nonce uint64) (uint64, Encoder, error) + func RandomEncoder() (uint64, Encoder) + type EncoderFS interface + Open func(name string) (fs.File, error) + ReadDir func(name string) ([]fs.DirEntry, error) + ReadFile func(name string) ([]byte, error) + type English struct + func (e English) Decode(words []byte) ([]byte, error) + func (e English) Encode(data []byte) ([]byte, error) + type Gzip struct + func (g Gzip) Decode(data []byte) ([]byte, error) + func (g Gzip) Encode(data []byte) ([]byte, error) + type Hex struct + func (e Hex) Decode(data []byte) ([]byte, error) + func (e Hex) Encode(data []byte) ([]byte, error) + type NoEncoder struct + func (n NoEncoder) Decode(data []byte) ([]byte, error) + func (n NoEncoder) Encode(data []byte) ([]byte, error) + type PNGEncoder struct + func (p PNGEncoder) Decode(data []byte) ([]byte, error) + func (p PNGEncoder) Encode(data []byte) ([]byte, error) + type PassthroughEncoderFS struct + func (p PassthroughEncoderFS) Open(name string) (fs.File, error) + func (p PassthroughEncoderFS) ReadDir(_ string) ([]fs.DirEntry, error) + func (p PassthroughEncoderFS) ReadFile(name string) ([]byte, error)