Security, Midnight Privacy & Wallet Guidance
ID:charis-security · Version: 2.0.0 · Status: review
> Operational security model and user wallet guidance for Charis. Not a substitute for an independent third-party smart-contract audit prior to high-value mainnet deployment.
1. Non-Custodial Security Architecture
Charis is built around a simple rule: never hold user keys, never hold equity, and never custody campaign or DAO funds.
| Surface | Primary Risk | Charis Safeguard |
| User Private Keys | Phishing, seed theft, or compromised signer | Charis never asks for seed phrases or private keys. Every transaction is constructed as unsigned CBOR via MeshJS and signed locally inside the user’s CIP-30 wallet or hardware device. |
| Escrowed Capital | Organizer diversion or failed fundraising goal | Deposits lock strictly in Cardano’s non-custodial escrow_v2 validator. Closing funds disburse in one lump sum exclusively to the campaign’s pinned licensed title escrow (Propy). Missed goals unlock 100% permissionless buyer self-refunds. |
| Member Ownership Caps | Hostile takeover or REIT 5/50 violation | Hard ≤ 9.8% (980 bps) per-member limit is enforced directly on-chain by CIP-0113 across both initial closing distribution and P2P transfers. |
| Member Privacy & Tax Data | Exposing SSNs/TINs or IDs on public ledgers | Midnight zero-knowledge circuits (ComplianceGate & TaxTierGate) prove sanctions clearance and tax tiers privately. Encrypted IRIS Copy A payloads use AES-256-GCM at rest; Zero-TIN Privacy Mode (Tier 2) stores zero PII. |
| Outbound Closing Bridge | Misrouted funds or unsupported Coinbase Custody contract transfers | Destination addresses are pinned to each campaign’s verified Propy settlement settings; direct Circle xReserve transfers to Coinbase Custody are blocked unless explicitly whitelisted, defaulting to the safe DAO self-custody Ethereum hop. |
| Database Isolation | Cross-account tampering or unauthorized writes | PostgreSQL enforces kernel Row-Level Security (RLS) across campaigns, compliance records, dividend vaults, and P2P transfer board tables. |
2. Supported Cardano & Midnight Wallets
Charis uses an explicit CIP-30 wallet allowlist:
- Supported Cardano Wallets: Gero (recommended all-in-one Cardano CIP-0113 + Midnight UX), Lace, Eternl, 1AM (in-browser WASM Midnight proving), Vespr, NuFi, and Typhon — plus hardware wallets (Ledger / Trezor / Keystone) paired through those extensions.
- Midnight Privacy Pairing: Cardano signing and Midnight zero-knowledge proving are decoupled. You can use Gero solo, Lace solo, or pair any Cardano wallet (such as Eternl) with a Midnight connector (such as 1AM or Lace) while Charis sponsors the Midnight network fee.
- Blocked / Retired Wallets: Following the 2026 SecondFi / Yoroi Ed25519 nonce vulnerability (where flawed wallet nonce derivation allowed key recovery from public signatures), Charis explicitly excludes compromised or retired wallets (SecondFi, legacy Yoroi builds, Nami, Flint, CCVault) from the connector menu. Hardware wallets were unaffected.
3. Smart-Contract Verification & Audit Posture
- Automated Invariant Tests: All Plutus V3 validators (
escrow_v2,charis_membership_supply_v2,charis_cip113_transfer_logic,dividend_vault,charis_dao_governance,charis_dao_treasury) maintain automated Aiken unit tests alongside end-to-end PostgreSQL + MeshJS integration tests and live Midnight Ledger 9 runtime checks. - Inspectable Compiled Code: Every compiled Plutus V3 validator hash and CBOR payload is publicly viewable on /contracts.
- Pre-Mainnet Hardening Checklist:
- [x] Non-custodial CIP-30 allowlist (zero proprietary user key signing)
- [x] Per-campaign unique Propy settlement pinning & Coinbase Custody xReserve guardrail
- [x] Forced PostgreSQL RLS across all compliance, dividend, and P2P board tables
- [x] Domain-separated 67-byte Ed25519 Midnight relayer attestations verified byte-for-byte in Aiken
- [ ] Independent third-party Aiken & Compact security audit prior to high-TVL mainnet launches
- [ ] Automated production IRS EO BMF re-verification schedule (
npm run irs:reverify)

