Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dozreg-toplud
Copy link
Contributor

@dozreg-toplud dozreg-toplud commented Jul 16, 2025

There are two issues with hoon version of +muk: +fe core is pinned outside of the definition of the jetted battery, leading to potential jet mismatches if +fe core in the head of the context of the gate is manipulated.

The second is an actual mismatch: if the length len of key, divided by four, is greater than the length of nblocks list, then Nock version would crash due to the lack of padding in nblocks. This is fixed by adding implicit padding in form of +snug gate.

This commit changes the registration for +muk, so it depends on urbit/vere#849.

Copy link
Collaborator

@joemfb joemfb left a comment

Choose a reason for hiding this comment

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

This is a good catch, I didn't realize that data and blocks were not consistently padded.

I would prefer to see this jet rewritten to use +cut instead of materializing lists in bloq 3 and 5. That would also let the padding logic be implicit in the length/step calculation, as opposed to appending onto a list.

@dozreg-toplud dozreg-toplud requested a review from joemfb July 16, 2025 16:15
Copy link
Collaborator

@joemfb joemfb left a comment

Choose a reason for hiding this comment

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

tyfys

@dozreg-toplud dozreg-toplud requested a review from pkova July 21, 2025 15:03
pkova added a commit to urbit/vere that referenced this pull request Jul 21, 2025
Depends on urbit/urbit#7198.

Previous registration was absurd anyway, it used `..muk` from pinned
`+fe` instead of the actual context.
@pkova pkova merged commit dcb4231 into next/kelvin/409 Jul 21, 2025
1 check 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.

4 participants