trustvault-nodejs-sdk
The TrustVault Node.js SDK allows Node.js clients to interact with TrustVault. It includes the following core components.
TrustVault - client interface to interact with TrustVault (webhooks, transaction, wallet)
AwsKmsKeyStore - Class that wraps AWS KMS key for signing
transaction - Bitcoin and Ethereum Transaction Class (validate and sign transaction digest(s))
wallet - Policy Class (validate and sign policyChangeRequest digest)
signature - verify and produce sign data
decoder - asn1-der decoder
encoder - asn1-der encoder
Installation
$ npm i @trustology/trustvault-nodejs-sdk
# Or:
$ yarn add @trustology/trustvault-nodejs-sdk
Getting Started
// common
const { TrustVault } = require("@trustology/trustvault-nodejs-sdk");
// es6
import { TrustVault } from "@trustology/trustvault-nodejs-sdk";
// sandbox env
const trustVaultSandbox = new TrustVault({ apiKey: "<TRUST_VAULT_API_KEY>", environment: "sandbox" });
const trustVault = new TrustVault({ apiKey: "<TRUST_VAULT_API_KEY>"});
You can find more detailed documentation and examples in our Developer Documentation.