aboutsummaryrefslogtreecommitdiff
path: root/sig.go
blob: b81d03a5113cd6e5e174227bdc14306a4c672c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package main

import "golang.org/x/crypto/ed25519"

type Sig struct {
	PKAlg  [2]byte
	KeyNum [KeyNumLen]byte
	Sig    [ed25519.SignatureSize]byte
}

func (v *Sig) Unmarshal(b []byte) error { return DecodeBase64(v, b) }
func (v *Sig) Marshal() ([]byte, error) { return EncodeBase64(v) }