API Reference Altcha v#2.0.1

Copy Markdown View Source

Modules

Top-level Altcha module providing backward-compatible access to V1 functions.

Altcha V1 module provides functions for creating and verifying ALTCHA challenges using the original proof-of-work algorithm (hash-based).

Represents a V1 challenge with its attributes.

Represents options for generating a V1 challenge.

Represents the payload of a V1 challenge.

Represents the payload for server signatures.

Represents data for verifying server signatures.

Represents the solution to a V1 challenge.

Altcha V2 module provides functions for creating and verifying ALTCHA v2 challenges.

PBKDF2 key derivation for PoW v2 challenges.

Iterative SHA key derivation for PoW v2 challenges.

A V2 PoW challenge containing parameters and an optional HMAC signature.

Parameters embedded in a V2 PoW challenge, signed with HMAC. All fields use camelCase when serialized to JSON to match the JS reference implementation.

A client-submitted V2 payload containing the original challenge and the solution. Typically Base64-encoded JSON sent from the browser widget.

A server-signed verification payload issued by the Altcha verification service.

A solution to a V2 PoW challenge.

Result of verifying a V2 solution.