Versions in this module Expand all Collapse all v0 v0.5.7 Jul 3, 2026 Changes in this version + const DefaultMaxSkew + const Domain + const NonceLen + const VerdictDomain + func CheckFresh(e Envelope, now time.Time, maxSkew time.Duration) error + func HashBody(body []byte) string + func HashEnvelope(canonical string) string + func NewNonce() (string, error) + func Sign(priv ed25519.PrivateKey, e Envelope) (canonical, sigB64 string, err error) + func SignVerdict(priv ed25519.PrivateKey, v Verdict) (canonical, sigB64 string, err error) + type Envelope struct + Audience string + BodyHash string + Network uint16 + Node uint32 + Nonce string + Timestamp int64 + func Parse(s string) (Envelope, error) + func Verify(pub ed25519.PublicKey, canonical, sigB64 string) (Envelope, error) + func (e Envelope) Canonical() (string, error) + type Verdict struct + EnvHash string + KeyGeneration int64 + LastSeenUnix int64 + Network uint16 + NetworkMember bool + Node uint32 + Online bool + Valid bool + VerifiedAt int64 + func ParseVerdict(s string) (Verdict, error) + func VerifyVerdict(kid, canonical, sigB64 string) (Verdict, error) + func VerifyVerdictWithKey(pub ed25519.PublicKey, canonical, sigB64 string) (Verdict, error) + func (v Verdict) Canonical() (string, error)