Documentation
¶
Overview ¶
Package sigpayload rebuilds the passkey-signature payload and its challenge byte for byte (cor:dmo:130:01). v3 only (R80): there is no v1 or v2 builder, and nothing falls back to one. It never sees an assertion or a key.
Index ¶
Constants ¶
View Source
const VersionV3 = "hadron-signature-v3"
VersionV3 is the only payload version signing produces.
Variables ¶
View Source
var ErrUnsupportedVersion = errors.New("unsupported payload version")
ErrUnsupportedVersion is returned for any payload version but v3.
Functions ¶
func BuildV3 ¶
BuildV3 returns the exact payload bytes for a signing request: v1's lines under the v3 prefix plus a final request line, every line ending in LF.
func CheckVersion ¶
CheckVersion refuses any payload version other than hadron-signature-v3.
Types ¶
type FieldError ¶
type FieldError struct{ Field, Reason string }
FieldError names the input that BuildV3 refused.
func (*FieldError) Error ¶
func (e *FieldError) Error() string
Click to show internal directories.
Click to hide internal directories.