TBD54566975 / incubation-dcx

A Web5 Protocol for Decentralized Credential Exchange
Apache License 2.0
4 stars 5 forks source link

Client-Side applicant server #82

Open bnonni opened 3 weeks ago

bnonni commented 3 weeks ago

Continuation of #68

DcxServer - Issuer

The @dcx-protocol/server package implements a polling mechanism for DcxIssuer. It is not a true server in the sense that its not running something like express to accept incoming http requests. Rather, it simply polls listening for new incoming records with a certain protocolPath (i.e. application). For now, that will be good enough.

DcxServer - Applicant

The @dcx-protocol/server package doesn't have the same mechanism for DcxApplicant because DcxApplicant is intended to be used on client-side (browsers). As such, we expect developers to be running their own local dev framework (next, react, angular, etc) and then install the applicant package into that project. It would, however, be nice if we could come up with some kind of simple server-like mechanism to add to the server package that injects the dcx applicant class and runs a server.

Ideas to Try

  1. next.js
  2. @web5/dwn-server

User Stories

Func Reqs

Next.js Func Reqs

DWN Server Func Reqs