@certifaction/verification-core
The verification-core contains everything needed verify a filehash on the Ethereum Smart Contract of Certifaction.
It returns a full verification object and meta information regarding the registration event, the registration transaction as well as revocation meta data.
Table of contents
Install
As NPM package
npm install @certifaction/verification-core
# or if using yarn
yarn add @certifaction/verification-core
Usage
ES6
import { CertifactionEthVerifier } from '@certifaction/verification-core'
const certifactionEthVerifier = new CertifactionEthVerifier()
const certifactionEthVerifier = new CertifactionEthVerifier(
'https://mainnet.infura.io/v3/4559d381898847c0b13ced86a45a4ec0',
'0xdc1d2c136cad73e10ae367d075995185edd68cae',
['0xf73e27c5008ff487803d2337fc3ac4016f6526e4', '0x5ee4ec3cbee909050e68c7ff7a8b422cfbd72244'],
'0x5532ba4add77dd25fa11acc5a84e5f183f57525e',
'0x3f647d9f6a22768EA9c91C299d0AD5924c6164Be',
'https://api.certifaction.io/'
)
const verification = certifactionEthVerifier.verify(fileHash)
License
Released by Certifaction AG