@settlemint/certimint-validate

Tools for validating the CertiMint proofs without CertiMint

Usage no npm install needed!

<script type="module">
  import settlemintCertimintValidate from 'https://cdn.skypack.dev/@settlemint/certimint-validate';
</script>

README

A toolkit to independently verify CertiMint seals

This npm package allows you to independently verify a CertiMint blockchain seal.

Installation

npm install --save @settlemint/certimint-validate

Usage

import { CertiMintValidation } from '@settlemint/certimint-validate';


const config = {
  bitcoin: {
    url: 'https://api.blockcypher.com/v1/btc/main', // Optional; Api url for bitcoin
    apiKey:  'e341cb773bff270e539690b93fb69f32'; // Optional, your api key from blockcypher if you use bitcoin anchors
  },

  ethereum: {
    apiKey:  'e341cb773bff270e539690b93fb69f32'; // Optional, your project id from infura if you use ethereum anchors on the mainnet
  }
}

const certiMintValidation = new CertiMintValidation(bitcoinApiKey);


status = await certiMintValidation.validateSeal(mySealObject);

status === SealStatus.CONFIRMED; // Seal has successfully been anchored
status === SealStatus.FAILED; // Failed to anchor seal, signinvites and/or signatures
status === SealStatus.PENDING; // Waiting for seal, signinvites and/or signatures to be anchored