Skip to content

nmshd/crypto-layer-node

crypto-layer-node

NPM Version

Node.js Addon providing TypeScript bindings for rust-crypto / crypto-layer.

This is a Node.js Addon built with Neon that implements the TypeScript bindings for rust-crypto / crypto-layer. The TypeScript interface definitions are provided by the @nmshd/rs-crypto-types package.

Warning

Currently crypto-layer errors are not correctly mapped to javascript errors. (See [#Debugging])

Warning

The key metadata storage uses sqlite. This means multiple processes may use the same database. But this also means that the file lock on a database is not released very fast. Deleting a database might not be immediately possible after dropping a provider.

Note

MacOS and IOS providers are currently not included, as they'd require the nodejs addon to be signed.

Usage

crypto-layer-node implements the TypeScript API of rust-crypto / crypto-layer. For documentation regarding the API head to rust-cryptos documentation. (Currently no version of rust-crypto is released. Thus there is no build of the docs on docs.rs).

Installation

npm i @nmshd/rs-crypto-types
npm i @nmshd/rs-crypto-node

Example

Have a look at the example in ./example.

Development && Building && Debugging

For development docs or for docs on how to build the project yourself see DEVELOPMENT.md.

Acknowledgments

This project was bootstrapped by create-neon.

License

crypto-layer-node is licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors