Documentation

Technical reference for P47H Vault — the local layer of P47H Edge Trust.

$ npm install @p47h/vault-js
example.ts
import { P47hVault } from '@p47h/vault-js';

const vault = new P47hVault();
await vault.init();

// Create identity
const { did, recoveryCode } = await vault.register('password');

// Store secrets
await vault.saveSecret('api_key', 'sk_live_xxx');