Polymesh SDK compatible signing manager that interacts with a Hashicorp Vault transit engine for signing transactions.
import { HashicorpVaultSigningManager } from '@polymeshassociation/hashicorp-vault-signing-manager';
import { Polymesh } from '@polymeshassociation/polymesh-sdk';
// setup
const signingManager = new HashicorpVaultSigningManager({
// URL of the Vault's transit engine
url: 'https://my-hosted-vault.io/v1/transit',
// authentication token
token: 'willNeverTell',
});
const polymesh = await Polymesh.connect({
nodeUrl,
signingManager,
});