TBD54566975 / incubation-dcx

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

DcxManager and DcxConfig #69

Closed bnonni closed 4 weeks ago

bnonni commented 1 month ago

DcxManager

Applicant and issuer both have this class and much of it is redundant. Consolidate them into one class in common. Implement the common DcxManager interface on each side of the protocol.

DcxConfig

These packages should be as stateless as possible. Having env config dependencies gets messy. Eliminating the issuerConfig, applicantConfig and config in each package simplifies these packages. Implement these in this new server package similar to the way @web5/dwn-server is implemented; in this case, it would be new Issuer({}) or new Applicant({}).

bnonni commented 4 weeks ago

Closing with #73