Documentation
¶
Overview ¶
Package senderauth defines the sender-signature acceptance policy shared by native and browser receivers, independently of their cryptographic backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrPublicKey = errors.New("senderauth: public key must be canonical, nonzero and prime-order")
Functions ¶
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier owns a checked key snapshot and is safe for concurrent verification.
func NewVerifier ¶
NewVerifier rejects the exceptional key encodings on which Ed25519 backends disagree. Prime-order identities also make the portable cofactored equation equivalent to the native equation when the signature point is prime-order.
func (*Verifier) PublicKey ¶
PublicKey returns a copy so identity binding cannot mutate shared verification state.