@dfinity/bls-verify
v1.1.1
Published
bls verification strategy in JavaScript
Downloads
15
Readme
@dfinity/bls-verify
Package wrapping the @noble/bls-12-381 pure JS BLS verification implementation for use in agent-js
. This is useful in contexts like React Native, where wasm implementations of BLS verification are not supported.
Visit the Dfinity Forum and SDK Documentation for more information and support building on the Internet Computer.
Additional API Documentation can be found here.
Installation
Using Principal:
npm i --save @dfinity/bls-verify
To use in your application
import { blsVerify } from '@dfinity/bls-verify';
import { createActor, canisterId } from '../declarations/example';
const exampleActor = createActor(canisterId, {
actorOptions: {
blsVerify,
},
});