Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func ResetMonotonicCache ΒΆ
func ResetMonotonicCache()
ResetMonotonicCache clears the monotonicity cache - for testing only
Types ΒΆ
type SignetProof ΒΆ
type SignetProof struct {
Version string
Mode string
Token []byte
JTI []byte
Cap []byte
Signature []byte
Nonce []byte
Timestamp int64
}
SignetProof represents a parsed Signet-Proof header
func ParseSignetProof ΒΆ
func ParseSignetProof(header string) (*SignetProof, error)
ParseSignetProof parses a Signet-Proof header value Format: v1;m=compact;t=<token>;jti=<jti>;cap=<cap>;s=<sig>;n=<nonce>;ts=<timestamp>
func ParseSignetProofWithValidation ΒΆ
func ParseSignetProofWithValidation(header string, enforceMonotonic bool) (*SignetProof, error)
ParseSignetProofWithValidation parses and validates a Signet-Proof header with security checks
Click to show internal directories.
Click to hide internal directories.