Skip to content

Class X402::Challenge

Inherits: Object

Constants

CURRENT_VERSION

Not documented.

DEFAULT_TTL

5 minutes

KNOWN_ATTRS

Not documented.

SUPPORTED_SCHEMES

Not documented.

Public Class Methods

from_header(header_value)

Reconstruct a challenge from the echoed X402-Challenge header.

Public Instance Methods

initialize(attrs = {})

  • @return [Challenge] a new instance of Challenge

sha256_hex()

Not documented.

to_canonical_json()

Not documented.

to_h()

Not documented.

to_header()

Not documented.

to_header_h()

Full representation for header encoding — includes optional fields like partial_tx_b64 that are excluded from the canonical hash.