type PublicKey struct { SignatureAlgorithm [2]byte KeyId [8]byte PublicKey [32]byte }
func DecodePublicKey(in string) (PublicKey, error)
func NewPublicKey(publicKeyStr string) (PublicKey, error)
func NewPublicKeyFromFile(file string) (PublicKey, error)
func (publicKey *PublicKey) Verify(bin []byte, signature Signature) (bool, error)
func (publicKey *PublicKey) VerifyFromFile(file string, signature Signature) (bool, error)
type Signature struct { UntrustedComment string SignatureAlgorithm [2]byte KeyId [8]byte Signature [64]byte TrustedComment string GlobalSignature [64]byte }
func DecodeSignature(in string) (Signature, error)
func NewSignatureFromFile(file string) (Signature, error)