decentralized-identity / decentralized-identity/decentralized-web-node

Suggestion: Encode request objects as IPLD CAR files.

Open
#99 4 comments 0 reactions 1 assignee Claimed by @oed View on GitHub
artifact: spec attr: obsolete type: discussion
Dominant language
HTML
Stars
413
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Was revisiting this spec and I noticed that IPLD (IPFS) is being used in a kind half baked way. Some of the data included in the "request object" is assumed to also be encoded as an IPLD DAG-CBOR object. I believe we can actually encode the entire request object as a set of IPLD objects (e.g. the `authorization` object is already valid DagJOSE). These IPLD objects can then be put together in a single [IPLD CAR file](https://ipld.io/specs/transport/car/carv2/) which can be easily transmitted over the wire as bytes encoded in any preferred manner.

This is mostly a suggestion on how IPLD could be used more natively. In the way the spec is written currently I'm not sure exactly what value using IPLD adds.

Sidenote, [DagJOSE was merged and released in go-ipfs](https://github.com/ipfs/go-ipfs/releases/tag/v0.11.0) :tada:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.