package
0.22.0
Repository: https://go.googlesource.com/mod
Documentation: pkg.go.dev

# Functions

GenerateKey generates a signer and verifier key pair for a named server.
NewEd25519VerifierKey returns an encoded verifier key using the given name and Ed25519 public key.
NewSigner constructs a new [Signer] from an encoded signer key.
NewVerifier construct a new [Verifier] from an encoded verifier key.
Open opens and parses the message msg, checking signatures from the known verifiers.
Sign signs the note with the given signers and returns the encoded message.
VerifierList returns a [Verifiers] implementation that uses the given list of verifiers.

# Structs

An InvalidSignatureError indicates that the given key was known and the associated Verifier rejected the signature.
A Note is a text and signatures.
A Signature is a single signature found in a note.
An UnknownVerifierError indicates that the given key is not known.
An UnverifiedNoteError indicates that the note successfully parsed but had no verifiable signatures.

# Interfaces

A Signer signs messages using a specific key.
A Verifier verifies messages signed with a specific key.
A Verifiers is a collection of known verifier keys.