earthstar-project / earthstar-project/willow-utils

Area in Area encoding seems to be implemented completely differently from what is specified

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
10
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://willowprotocol.org/specs/encodings/index.html#enc_area_in_area

Area in area encoding ends with a concatenation of subspace ID, path, start diff and end diff, but this implementation has them ordered as start diff, end diff, path and subspace?

@AljoschaMeyer do you remember this encoding changing like this at any point? Am I losing my marbles?!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Area in Area encoding implementation and compare its output ordering with the enc_area_in_area section of the linked Willow specification. Confirm whether the implementation or specification is authoritative, then bring the encoding into agreement and verify the resulting byte order with the project's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.