The Web2 proxy system enables HTTP requests through the Demos network, providing privacy and attestation capabilities through DAHR (Data Agnostic HTTPS Relay).
Installation
import { Demos } from "@kynesyslabs/demosdk/websdk"
import { DemosWebAuth } from "@kynesyslabs/demosdk/websdk"
Basic Setup
// Connect to demos
const demos = new Demos()
await demos.connect("http://localhost:53550")
// Set up identity
const identity = DemosWebAuth.getInstance()
await identity.create()
await demos.connectWallet(identity.keypair.privateKey)