1am-wallet

Installation
SKILL.md

Scope This skill covers detecting, connecting, and wiring the 1AM browser extension (window.midnight['1am']) into a frontend dApp. The 1AM wallet handles all ZK proving and dust fee sponsorship — users pay zero gas. This skill is generic: replace every YourContract / yourCircuit / your-contract placeholder with your actual contract name and circuit IDs.

Suggested file layout (adapt to your project):

  • src/lib/midnight.ts → wallet session, provider wiring, indexer patch (canonical source: references/midnight-session.md)
  • src/lib/encryption.ts → optional payload encryption derived from wallet signature
  • src/hooks/useContract.ts → app logic and state orchestration
  • src/contexts/WalletContext.tsx → wallet connection state

Shared references: references/midnight-session.md, references/gotchas.md, references/versions.json


1) Dependencies

Exact versions known to work together:

Installs
128
GitHub Stars
16
First Seen
Jul 2, 2026
1am-wallet — kali-decoder/midnight-skills