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.
Using Principal:
npm i --save @dfinity/bls-verify
import { blsVerify } from '@dfinity/bls-verify';
import { createActor, canisterId } from '../declarations/example';
const exampleActor = createActor(canisterId, {
actorOptions: {
blsVerify,
},
});