1.0.3 • Published 6 months ago
arpc-auth-wallet-sdk v1.0.3
arpc-auth-wallet-sdk
A TypeScript package for Fullmenn proof generation and verification.
Installation
npm install arpc-auth-wallet-sdk
Usage
import { ArpcAuthWalletSDK } from 'arpc-auth-wallet-sdk';
const arpcAuthWalletSDK = new ArpcAuthWalletSDK('https://arpc-auth-wallet-backend.app');
const newAuthRound = await arpcAuthWalletSDK.getNewAuthRound();
console.log(newAuthRound);
const completedSolution = await arpcAuthWalletSDK.verifyCurrentRound('udlr');
console.log(completedSolution);
/// for word wallet
const newARPCAuthWallet = new ArpcAuthWalletSDK('https://arpc-auth-wallet-backend.app');
newARPCAuthWallet.setWordWallet(['laal', 'hara', 'neela', 'peela'], 'test', '0xbadab80af02f3155292e6e7375fbcc13238c68ee8c9c8401c0596e4b7315732a');
const newAuthRound = await newARPCAuthWallet.getNewAuthRound();
console.log(newAuthRound);
const completedSolution = await newARPCAuthWallet.verifyWordCurrentRound(['laal', 'hara', 'neela', 'peela']);
console.log(completedSolution);