🍁Double Protect your assets using with Pirichain Authenticator Factor

As we explained in below sample. Any token owner or programmer can model such below example. The important thing is double protection your assets and operations.

//####PIRICHAIN Smart Scenario v.1.0########
// PiriChain Smart Scenario Code Blocks Area 

 // All Functions must be return promise non-blocking async block or await prefix delimitier..  


async function getMyToken()
{
    return await Tools.getMyAuthenticatorToken();
    // this code will only give secret code 30 minutes after creation the secret token for each user.
}

async function authenticatorTokenGenerate()
{
// Users can generate and system will distribute the secret token in safe 
// to all of nodes.
        return await Tools.generateAuthenticator();
}

 async function init(token)
{
// If user is able to give the correct token then system will send 1 PIRI.
    const result=await Tools.verifyAuthenticator(token);
    if (result)
        return await Transaction.sendPIRI(EXECUTER_ADDRESS,1);
    else
        return {error:1,message:'NO! Your token is not correct!'};
 
}

Last updated