Versions in this module Expand all Collapse all v0 v0.33.7 Jan 9, 2024 Changes in this version + var StringIsBase64 bool v0.33.0 Sep 11, 2022 Changes in this version + func Base32(anything string) string + func StoreKeys(k I2PKeys, r string) error + func StoreKeysIncompat(k I2PKeys, w io.Writer) (err error) + type I2PAddr string + func FiveHundredAs() I2PAddr + func Lookup(addr string) (*I2PAddr, error) + func NewI2PAddrFromBytes(addr []byte) (I2PAddr, error) + func NewI2PAddrFromString(addr string) (I2PAddr, error) + func (a I2PAddr) Base64() string + func (a I2PAddr) Network() string + func (a I2PAddr) String() string + func (addr I2PAddr) Base32() (str string) + func (addr I2PAddr) Bytes() []byte + func (addr I2PAddr) DestHash() (h I2PDestHash) + func (addr I2PAddr) ToBytes() ([]byte, error) + type I2PDestHash [32]byte + func DestHashFromBytes(str []byte) (dhash I2PDestHash, err error) + func DestHashFromString(str string) (dhash I2PDestHash, err error) + func (h I2PDestHash) Hash() string + func (h I2PDestHash) Network() string + func (h I2PDestHash) String() string + type I2PKeys struct + Address I2PAddr + Both string + func LoadKeys(r string) (I2PKeys, error) + func LoadKeysIncompat(r io.Reader) (k I2PKeys, err error) + func NewDestination() (*I2PKeys, error) + func NewKeys(addr I2PAddr, both string) I2PKeys + func (k I2PKeys) Addr() I2PAddr + func (k I2PKeys) Ed25519PrivateKey() *ed25519.PrivateKey + func (k I2PKeys) HostnameEntry(hostname string, opts crypto.SignerOpts) (string, error) + func (k I2PKeys) Network() string + func (k I2PKeys) Private() []byte + func (k I2PKeys) PrivateKey() crypto.PrivateKey + func (k I2PKeys) Public() crypto.PublicKey + func (k I2PKeys) SecretKey() SecretKey + func (k I2PKeys) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) + func (k I2PKeys) String() string + type SecretKey interface + Sign func(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)