How ag0x123/pinesign works
PineSign encrypts files in the sender’s browser, stores ciphertext through a self-hostable gateway, and lets the recipient decrypt and sign a claim. The gateway verifies that claim and publishes a frozen receipt through ENS on Ethereum. The README describes email-code/passkey sign-in as the current direction, while sampled sign-in code still implements Circle; the graph preserves the documented capability without asserting those implementations are the same. Some gateway routes and setup steps were not excerpted, so uncertain links are omitted.
Main entry points: server.js HTTP gateway · keysource.js Key selection · ens.js ENSv2 integration · client.js Gateway client
Components 25
Web experience
- Sign-in and send
web/src/onboard.js - Claim transfer
web/src/claim.js - Gateway setup UI
web/src/setup.js - Account session
web/src/session.js
Identity and cryptography
- Key selection
shared/keysource.js - Local identity
shared/identity.js - Encryption and signatures
shared/crypto.js - Extension bridge
shared/bridge.js
Gateway services
- Gateway client
shared/client.js - HTTP gateway
gateway/server.js - Transfer storage
gateway/store.js - Ciphertext storage
gateway/swarm.js - Swarm access
gateway/bee.js - Nonce authentication
gateway/auth.js - Gateway provisioning
gateway/setup.js - Email delivery
gateway/mail.js - Name resolution
gateway/names.js
ENS receipts
- Ethereum operations
gateway/chain.js - ENSv2 integration
gateway/ens.js - Receipt resolver
contracts/src/PineSignResolver.sol - Receipt contract
contracts/src/PineSignReceipts.sol
Other components
- Sender
- Recipient
- Ethereum and ENS
- Swarm network
Connections 31
- Sender → Sign-in and send: starts transfer
README.md - Recipient → Claim transfer: opens transfer
README.md - Sign-in and send → Key selection: uses keys
shared/keysource.js - Sign-in and send → Gateway client: sends request
shared/client.js - Claim transfer → Key selection: decrypts and signs
shared/keysource.js - Claim transfer → Gateway client: claims transfer
shared/client.js - Account session → Sign-in and send: reads session
web/src/session.js - Key selection → Local identity: loads identity
shared/keysource.js - Key selection → Extension bridge: checks extension
shared/keysource.js - Key selection → Encryption and signatures: encrypts and signs
shared/keysource.js - Key selection → Gateway client: creates signer
shared/keysource.js - Gateway client → Encryption and signatures: signs nonce
shared/client.js - Gateway client → HTTP gateway: calls API
shared/client.js - HTTP gateway → Nonce authentication: authenticates writes
gateway/server.js - HTTP gateway → Transfer storage: reads and records transfers
gateway/server.js - HTTP gateway → Ciphertext storage: handles blob routes
gateway/server.js - Ciphertext storage → Swarm access: uses Swarm access
gateway/swarm.js - Ciphertext storage → Swarm network: stores ciphertext
README.md - HTTP gateway → Gateway provisioning: routes setup
gateway/server.js - HTTP gateway → Name resolution: routes name lookup
gateway/server.js - HTTP gateway → Email delivery: sends email
gateway/server.js - Gateway setup UI → HTTP gateway: configures gateway
- Gateway provisioning → Ethereum operations: provisions chain
gateway/setup.js - Gateway provisioning → ENSv2 integration: registers name
gateway/setup.js - ENSv2 integration → Receipt resolver: deploys and attaches
gateway/ens.js - ENSv2 integration → Ethereum and ENS: writes ENS records
README.md - Ethereum operations → Ethereum and ENS: reads and writes chain
gateway/chain.js - HTTP gateway → ENSv2 integration: publishes claim receipt
gateway/server.js - ENSv2 integration → Receipt resolver: finalizes records
gateway/ens.js - Receipt resolver → Ethereum and ENS: serves frozen proof
README.md - Receipt contract → Ethereum and ENS: records receipts