Skip to content

feat: implement access, blob/replicate, and pdp/* capabilities#28

Merged
frrist merged 5 commits into
mainfrom
frrist/piri-ucan1
May 21, 2026
Merged

feat: implement access, blob/replicate, and pdp/* capabilities#28
frrist merged 5 commits into
mainfrom
frrist/piri-ucan1

Conversation

@frrist
Copy link
Copy Markdown
Member

@frrist frrist commented May 20, 2026

frrist added 2 commits May 20, 2026 10:24
- because external dep
  github.com/filecoin-project/go-data-segment/merkletree doesn't support
  dagjson, and we don't use dagjson for anything
Comment thread commands/pdp/gen/main.go
// CBOR-only on the wire, so we don't generate dag-json codecs here.
if err := cbg.WriteMapEncodersToFile(cborFile, "pdp", models...); err != nil {
panic(err)
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alanshaw want to flag this explicitly: the github.com/filecoin-project/go-data-segment/merkletree dependency we have doesn't implement DAGJSON, it does implement a CBOR-Un/Marshaller. The only alterntive I see is wrapping/re-implementing the type, and I'd like to avoid that if alright?

Comment on lines +44 to +45
// The stack is CBOR-only on the wire, so we don't generate dag-json codecs.
if err := cbg.WriteMapEncodersToFile(cborFile, "sign", models...); err != nil {
Copy link
Copy Markdown
Member Author

@frrist frrist May 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto no json note here too.

@frrist frrist requested review from Peeja and alanshaw May 20, 2026 21:06
@frrist frrist self-assigned this May 20, 2026
frrist added a commit to fil-forge/ucantone that referenced this pull request May 21, 2026
@frrist frrist merged commit c85c8c4 into main May 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants