sigpayload

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 3 Imported by: 0

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

func BuildV3(nodeID, approvalHash, requestID string) ([]byte, error)

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 Challenge

func Challenge(payload []byte) [32]byte

Challenge is the raw SHA-256 of the payload bytes.

func CheckVersion

func CheckVersion(version string) error

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

Jump to

Keyboard shortcuts

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