Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + type Encrypter struct + func ECDHEncrypter(localKey *btcec.PrivateKey, remoteKey *btcec.PublicKey) (*Encrypter, error) + func KeyRingEncrypter(keyRing keychain.KeyRing) (*Encrypter, error) + func (e Encrypter) DecryptPayloadFromReader(payload io.Reader) ([]byte, error) + func (e Encrypter) EncryptPayloadToWriter(payload []byte, w io.Writer) error + type EncrypterDecrypter interface + DecryptPayloadFromReader func(io.Reader) ([]byte, error) + EncryptPayloadToWriter func([]byte, io.Writer) error + type MockKeyRing struct + Fail bool + func (m *MockKeyRing) DeriveKey(keyLoc keychain.KeyLocator) (keychain.KeyDescriptor, error) + func (m *MockKeyRing) DeriveNextKey(keyFam keychain.KeyFamily) (keychain.KeyDescriptor, error)