Skip to content

Conversation

@m0ar
Copy link
Collaborator

@m0ar m0ar commented Jan 19, 2026

Single event anchor batch roots didn't initially get a dag-pb tree node wrapper, instead the dag-jose hash was written to the chain. However, it assumed it should slice off the first 4 bytes from the cid to strip it down to a hash, but dag-jose has a longer codec sequence. This resulted in the root hash keeping the 0x20 (digest length 32) in the front, causing the last digest byte to be dropped.

The fix is falling back to a partial 31-byte comparison for gnosis (clay) anchors, for anchors in a specific time window, and only if the prefix is 0x20.

Note: based on fix/revert-proof-autodiscovery-removal / 54a2122

@m0ar m0ar requested a review from stbrody January 19, 2026 17:19
@m0ar m0ar self-assigned this Jan 19, 2026
@m0ar m0ar added the bug Something isn't working label Jan 19, 2026
@m0ar m0ar requested a review from a team as a code owner January 19, 2026 17:19
@m0ar m0ar requested review from stephhuynh18 and removed request for a team January 19, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants