Releases: altcha-org/altcha-lib
Releases · altcha-org/altcha-lib
v1.1.1
v1.1.0
v1.0.0
v0.5.1
v0.5.0
Changes:
- Added
verifyFieldsHash
function to verify fields signature when using the Spam Filter - Added JS-doc to functions
- Fixed ServerSignatureVerificationData types
- Functions
verifySolution
andverifyServerSignature
no longer throw if the payload is an invalid string (not a base64 string)
v0.4.1
v0.4.0
v0.3.0
Changes:
- The
salt
now includes custom parameters in a URL-encoded query string, allowing to pass custom data and expiration time in a standardized format. - The
createChallenge
function now acceptsexpires: Date
parameter, appending?expires=
parameter to the salt (as a Unix timestamp in seconds). - The
verifySolution
function now automatically verifies the expiration of the challenge if the salt contains?expires=
parameter. This feature can be disabled by utilizingcheckExpires: false
as the optional third argument. - Introduced the new function
extractParams
, enabling the extraction of custom parameters from the base64-encoded payload, payload object, or challenge object.