Skip to content

Cryptographic utility functions for use with the Finprint protocol.

License

Notifications You must be signed in to change notification settings

finprint/crypto-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cryptographic utility functions for use with the Finprint protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published