Off-Chain Proofs
Overview
1. Redirect user to Holonym
https://app.holonym.id/prove/off-chain/<proofType>?callback=<callback>2. Verify proof
import {
verifyUniquenessProof
} from '@holonym-foundation/off-chain-sdk';
/**
* @param proof - The value of the "proof" query parameter passed to the callback URL
* @returns {Promise<boolean>}
*/
async function verify(proof) {
const parsedProof = JSON.parse(proof);
const result = await verifyUniquenessProof(parsedProof);
console.log(`User is unique: ${result}`);
return result;
}Last updated