The purpose of the package @dinamonetworks/hsm-dinamo package is to provide a secure, consistent, and scalable communication layer between applications that use Node.js technology and the HSM cryptographic hardware manufactured by DINAMO. This layer provides cryptographic primitives (signature, encryption) as well as functions from the HSM’s specialized modules: blockchain, XML signing for NFe (electronic invoice), SPB (Brazilian Payment System), and EFT (Electronic Funds Transfer).
The package @dinamonetworks/hsm-dinamo package can be downloaded or installed directly from NPMjs.com:
npm i @dinamonetworks/hsm-dinamo
For APIs that operate functions with smart cards, a complete installation of the HSM software with the Remote option is required, as well as a certified USB reader and compatible cards.
For scenarios involving multiple concurrent operations, use `connectPooled()` instead of `connect()`. It automatically manages a pool of HSM sessions, enabling parallel cryptographic operations without serializing them into a single connection. See the Session Pool documentation for details and configuration.
Examples using the APIs in the package can be found on the Examples Page of the documentation.
Information on software versions is available in the Release Notes.
The full HSM technical documentation (configuration, administration, integration, etc.) can be found in the HSM Documentation.