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.
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).
npm i @nmshd/rs-crypto-types
npm i @nmshd/rs-crypto-nodeHave a look at the example in ./example.
For development docs or for docs on how to build the project yourself see DEVELOPMENT.md.
This project was bootstrapped by create-neon.
crypto-layer-node is licensed under the MIT license.