@odatano/nightgate 0.3.0
0.3.0 adds a full transaction-submission layer on top, so the plugin now both reads Midnight
chain data and writes to it via Compact contracts and wallet operations.
Highlights
- Contract submission:
deployContract/submitContractCallwith
build → sign → submit through the Midnight JS SDK, run in a worker thread. - Async job model: long-running actions return
{ jobId, status }
immediately; pollgetJobStatus(jobId, sessionId). Crash-recoverable. - Wallet & funds:
connectWalletForSigning(BIP39, Lace-compatible HD
derivation),sendNight,shieldFunds/unshieldFunds, DUST
register/deregister, plus read-only balance & fee-estimate diagnostics. - Tiered disclosure:
AttestationVaultcontract +
Attestations/DisclosureRoles, theAttestationServiceSDK mixin
(public/legitimate_interest/authoritytiers), andanchorDocument
/verifyDocumentfor on-chain document anchoring (caller-managed storage). - ZK predicate attestations: prove
value ≤ / ≥ thresholdover a hidden
value without revealing it (issuePredicateAttestation/
verifyPredicateAttestation); - Production private state: CAP-DB-backed, AES-256-GCM encrypted provider
replacing the SDK's LevelDB store. - Four OData V4 services: Nightgate, Indexer, Analytics, Admin.
Notes
Verified live on preprod: contract deploy + call, and a ZK predicate proof (47300 ≤ 50000 accepted, 51 ≤ 50 rejected by the circuit).
See CHANGELOG.md for the full list and
docs/reference.md for the complete API & configuration.