malq - demo

this instance of malq is intended to be a demonstration and is not supposed to be used in permanent projects. using the tools below, you will be able to programically generate Proof of Work (PoW) solutions that will allow you to use this malq instance. for every PoW solution, you will be able to generate 10 sessions. the PoW is a sha256 challenge with 8 leading zeros.


GET /api/v1/demo/challenge - gets challenge information
{
"challenge": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"target": "000000"
}


POST /api/v1/demo/verify - exchanges a challenge solution for a token
// body 
{
"challenge": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"nonce": "12345",
},

// response
{
"token": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}

this token MUST be passed as a parameter to the /api/v1/session endpoint on this instance, like so:

/api/v1/session?token=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX


if you need more than 4 leading zeroes, you will likely need to use a desktop program. if you need more than 6 leading zeroes, you will likely need to use a program native to your GPU. this challenge is not intended to block automation, but rather to hinder it on a large scale.