Before you can submit signed receipts, you need three credentials in your vendor account:
VAULTGRAPH_VENDOR_API_KEY
VAULTGRAPH_VENDOR_PUBLIC_KEY
VAULTGRAPH_VENDOR_PRIVATE_KEY
1) Create your vendor API key
- Sign in at app.vaultgraph.com
- Switch to your vendor organization
- Open Org Settings → API Keys
- Click Create API key and copy it
Save this value as VAULTGRAPH_VENDOR_API_KEY in your server environment.
Never expose API keys in browser/client code. Keep them in your backend
secrets manager or server-only environment variables.
2) Generate your Ed25519 keypair (SDK helper)
Use the SDK helper to generate PEM-encoded keys:
import { generateKeyPair } from "@vaultgraph/sdk";
const { privateKey, publicKey } = generateKeyPair();
console.log("VAULTGRAPH_VENDOR_PRIVATE_KEY=\n", privateKey);
console.log("VAULTGRAPH_VENDOR_PUBLIC_KEY=\n", publicKey);
Set these in your server environment as:
VAULTGRAPH_VENDOR_PRIVATE_KEY
VAULTGRAPH_VENDOR_PUBLIC_KEY
The private key must remain secret. Store it server-side only and never commit
it to source control.
3) Add credentials to your environment
Example:
VAULTGRAPH_VENDOR_API_KEY=vgk_...
VAULTGRAPH_VENDOR_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----"
VAULTGRAPH_VENDOR_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
Next step
Continue with: