@notabene/verify-proof
v1.0.0-preview.4
Published
Verify ownership proofs
Downloads
83
Readme
@notabene/verify-proof
This package provides functionality to verify ownership proofs for the Notabene SDK.
Description
The @notabene/verify-proof
package is designed to work with the Notabene SDK, offering methods to verify various types of ownership proofs used in blockchain transactions and identity verification.
Installation
npm install @notabene/verify-proof
or
yarn add @notabene/verify-proof
Usage
Here's a basic example of how to use the verifyProof
function:
import { verifyProof } from '@notabene/verify-proof';
import { OwnershipProof } from '@notabene/javascript-sdk';
async function checkProof(proof: OwnershipProof) {
const verifiedProof = await verifyProof(proof);
console.log(verifiedProof.status);
}
Supported Proof Types
- Checkbox Confirmation (
ProofTypes.CheckboxConfirmation
) - Screenshot (
ProofTypes.Screenshot
) - Personal Sign EIP191 (
ProofTypes.PersonalSignEIP191
) - Personal Sign EIP712 (
ProofTypes.PersonalSignEIP712
) - Personal Sign BIP137 (
ProofTypes.PersonalSignBIP137
) - Personal Sign XPUB (
ProofTypes.PersonalSignXPUB
) - Micro Transfer (
ProofTypes.MicroTransfer
)
Development
To set up the development environment:
- Clone the repository
- Install dependencies:
yarn install
- Run tests:
yarn test
Scripts
yarn dev
: Start development serveryarn build
: Build the projectyarn lint
: Run linteryarn test
: Run tests
Dependencies
@notabene/javascript-sdk
: Notabene JavaScript SDKviem
: Ethereum utility librarybitcoinjs-message
: Bitcoin message signing and verification
License
This project is private and not publicly licensed.
Author
Pelle Braendgaard