HappyWan

Platform Security & Ledger Integrity

Security & Production Reliability

Last Updated: 2026-12-02

Cryptographic controls, webhook verification, zero-training asset isolation, and atomic credit protection built for commercial studios and programmatic API teams.

01 · Credentials

Password & Bearer Key Cryptography

User passwords are salted per-record and derived with Node.js scrypt (64-byte derived key, constant-time verification). Programmatic Bearer keys (hwk_live_*) are displayed exactly once at creation and stored exclusively as SHA-256 digests so plaintext keys never touch disk.

02 · Billing Integrity

Canonical-JSON HMAC-SHA512 Billing Verification

Every NOWPayments cryptocurrency IPN webhook is verified against the raw request body using recursive key-sorted canonical JSON serialization and timing-safe HMAC-SHA512 comparison (x-nowpayments-sig). Order IDs, expected USD SKU amounts, and idempotency keys are strictly validated before granting credits.

03 · Ledger Safety

Atomic Credit Ledger & 100% Auto-Refund

Credit reservations, top-ups, and failure reversals execute inside serialized BEGIN IMMEDIATE database transactions. If an upstream Wan 3.0, Wan 3.0 Pro, or HappyHorse 1.1 render fails, times out, returns an empty asset, or halts on content moderation, 100% of reserved credits are returned automatically.

04 · Isolation

Transport, Cookie & Tenant Isolation

All Studio and REST API traffic runs over TLS 1.3 with HSTS, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, and HttpOnly; SameSite=Lax; Secure HMAC-SHA256 session cookies. Jobs, reference vaults, and billing ledgers are strictly scoped to the authenticated user_id.

Zero-Training Isolation & Reference Asset Governance

Prompts, 50-Ref Vault entries (JPEG/PNG/WebP stills, MP4/MOV clips, WAV/MP3 audio tracks), and rendered MP4 links are never shared across workspaces and are never used to train or fine-tune models. Because HappyWan Video never stores credit card details or wallet private keys, breach surface is tightly bounded to authentication credentials, job metadata, and invoice settlement IDs.

How NOWPayments Webhook Verification Prevents Spoofed Top-Ups

  1. Canonical Payload Signing: Incoming webhooks from NOWPayments are parsed, recursively key-sorted into canonical JSON, and hashed with HMAC-SHA512 using our server-side IPN secret before constant-time comparison against x-nowpayments-sig.
  2. SKU & Finality Verification: Only settled terminal states matching the exact internal order ID and expected USD invoice price qualify to credit an account.
  3. Idempotent Ledger Settlement: Each paid order writes once inside a serialized transaction so duplicate webhook deliveries can never double-credit or corrupt balances.

Deletion Controls, Commercial Rights & Vulnerability Reporting

Revoke compromised hwk_live_* Bearer keys instantly in Studio → API Keys or delete vault slots in Studio → 50-Ref Vault. Review full retention and copyright boundaries in our Privacy Policy, Refund Policy, and Terms of Service. To report a security issue or request an enterprise security review, email hello@happywanvideo.ai.

Security, Crypto Settlement & Data Handling — HappyWan