Package recipient implements the recipient public key store.
Store is the recipient store.
New constructs a new Store instance.
Clear removes the recipient and corresponding ecdh.PublicKey from the Store.
CloneRecipients returns a copy of the internal recipient map.
Get returns the ecdh.PublicKey for the given recipient, or nil iff the recipient does not exist. Note that this treats Normalize() failures as if the recipient is invalid.
GetByKey returns the identifier for the provided public key if any.
LoadFromPEM adds a receipient from a PEM file on disk.
Normalize normalizes the provided recipient according to the rules specified at the Store construction time, along with performing some basic sanity checking, and returns the normalized address, local part and domain. The Store is not queried for recipient presence.
Set sets the ecdh.PublicKey for the provided recipient. If an existing key is present, it will be silently overwritten.