Add parsing and serializing interfaces for keyrings (#275)

* Add parsing and serializing interfaces for keyrings

* Make error check more compact
This commit is contained in:
Aron Wussler 2024-04-08 11:38:52 +02:00 committed by GitHub
parent 453e81905b
commit 0d1ce13767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 69 additions and 0 deletions

View file

@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Added
- API to serialize KeyRings to binary data:
```go
func (keyRing *KeyRing) Serialize() ([]byte, error)
```
- API to parse KeyRings from binary data:
```go
func NewKeyRingFromBinary(binKeys []byte) (*KeyRing, error)
```
## [2.7.5] 2023-31-01
### Added