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:
parent
453e81905b
commit
0d1ce13767
3 changed files with 69 additions and 0 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue