Web2
What is Web2 Proxy?
The Web2 proxy system allows you to make HTTP requests through the Demos network. Requests are verified by a network of attestation nodes, ensuring data integrity and reliability. The system provides:- Secure proxy requests through the Demos network
- Session-based request handling
- Support for all standard HTTP methods
- Custom header and payload support
Basic Example
Key Features
- Session Management: Each proxy request is handled through a dedicated session
- Method Support: GET, POST, PUT, PATCH, DELETE
- Custom Headers: Add your own headers to requests
- Payload Support: Send data with your requests
- Authorization: Include authorization tokens when needed
Choosing Between DAHR and TLSNotary
The Demos Web2 system offers two complementary methods for web attestation:DAHR
Fast proxied requests with hash attestation. Best for general API calls where speed matters. Response hashes are stored on-chain.
TLSNotary
Cryptographic proofs from TLS sessions. Best for confidential data requiring verifiable attestation with selective disclosure.
| Feature | DAHR | TLSNotary |
|---|---|---|
| Speed | ~500ms | 2-5s |
| Cost | Gas only | 1+ DEM + gas |
| Privacy | Hash attestation | Zero-knowledge possible |
| Best for | General APIs | Confidential data |