Versions in this module Expand all Collapse all v0 v0.1.0 Jul 23, 2020 Changes in this version + const MaxSignatureAge + var ErrBadTime = errors.New("sortedmap: signature time wrong") + var ErrNoVerify = errors.New("sortedmap: signature verification failed") + var ErrWalkBack = errors.New("sortedmap: expired certificate replayed") + type SignedMap struct + Config StringMap + SignDate uint64 + Signature []byte + func Certify(lastSignDate uint64, publicKey []byte, cert []byte) (*SignedMap, error) + func Unmarshal(d []byte) (*SignedMap, error) + func (sm *SignedMap) Marshal() ([]byte, error) + type SortedMap []StringStruct + func (so SortedMap) Image() []byte + func (so SortedMap) Len() int + func (so SortedMap) Less(i, j int) bool + func (so SortedMap) Sign(signdate uint64, privKey *[ed25519.PrivateKeySize]byte) []byte + func (so SortedMap) Swap(i, j int) + func (so SortedMap) ToMap() StringMap + func (so SortedMap) Verify(signdate uint64, publicKey []byte, signature []byte) bool + type StringMap map[string]string + func (sm StringMap) GenerateCertificate(privKey *[ed25519.PrivateKeySize]byte) ([]byte, error) + func (sm StringMap) Sort() SortedMap + type StringStruct struct + K string + V string