Cryptographic functions for use with the Finprint protocol, built using libsodium.
npm install @finprint/crypto-utils
Before calling any finprint-crypto functions, you'll need to initialize the library by awaiting the ready
promise.
import * as crypto from '@finprint/crypto-utils'
await crypto.ready
This module supports only the algorithms and formats used by the Finprint smart contracts.
- X25519-Chacha20-Poly1305 key generation
- X25519-Chacha20-Poly1305 encryption/decryption
- blake2b-256
- Base64Url unpadded