ProtonMail / gopenpgp

A high-level OpenPGP library
https://gopenpgp.org
MIT License
1.01k stars 111 forks source link

Add parsing and serializing interfaces for keyrings #275

Closed wussler closed 2 months ago

wussler commented 2 months ago

This PR adds an API to serialize KeyRings to binary data:

func (keyRing *KeyRing) Serialize() ([]byte, error)

and an API to parse KeyRings from binary data:

func NewKeyRingFromBinary(binKeys []byte) (*KeyRing, error)