pop

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pop holds the server-side proof-of-possession verifier and the per-(host, nonce) replay cache used by the signed-poll handler (ADR 0004).

Index

Constants

This section is empty.

Variables

View Source
var ErrBadSignature = errors.New("bad signature")

ErrBadSignature is returned when the signature does not verify, either because the canonical message was tampered, the public key does not match the host, or the key/signature length is wrong. The poll handler maps it to a 401 with reason=bad_signature.

Functions

func Verify

func Verify(publicKey ed25519.PublicKey, canonical string, sig []byte) error

Verify checks the Ed25519 signature over the canonical string. All length validation happens here so the handler can call Verify uniformly.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL