Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 762 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 762 Bytes

Finprint Crypto Utils

Cryptographic functions for use with the Finprint protocol, built using libsodium.

Setup and Installation

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

Supported Functions

This module supports only the algorithms and formats used by the Finprint smart contracts.

Encryption

  • X25519-Chacha20-Poly1305 key generation
  • X25519-Chacha20-Poly1305 encryption/decryption

Digest

  • blake2b-256

Encoding

  • Base64Url unpadded