Socket
Book a DemoInstallSign in
Socket

@settlemint/certimint-validate

Package Overview
Dependencies
Maintainers
10
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/certimint-validate

Tools for validating the CertiMint proofs without CertiMint

latest
Source
npmnpm
Version
3.5.0
Version published
Maintainers
10
Created
Source

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:  'xxx'; // 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

Keywords

merkle tree

FAQs

Package last updated on 09 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.