Repository navigation
Embed current-actor template lengths as fixed-width constants - #68
Merged
Merged
Conversation
Replace hidden current-actor length arguments with byte[4] constants, resolved in one fill-in pass and read once into entry-local integers. Keep foreign template witnesses unchanged. Add fixed-width and end-to-end ranged-transfer coverage.
Add a 30-case input/output matrix checking witness forms, ABI parameters, and artifact recipes. Pin selector byte witnesses as a separate case. Clarify the filters and explain how embedded lengths align entry signatures with single-entity specs such as KCC20.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Entries that read other instances of their own actor no longer need hidden prefix/suffix length arguments. This better matches single-entity specs such as KCC20, even when the actor belongs to a multi-actor app.
The compiler embeds the lengths as fixed-width
byte[4]constants, fills them in after compilation, and checks that the script layout stays unchanged. Each entry reads them into integer locals once and reuses those values.Template authentication remains unchanged. Foreign actors, selectors, and open
actor_typetargets retain their planned witnesses.Coverage includes a 30-case input/output matrix, selector-witness assertions, fixed-width checks, and runtime transfers with zero, one, or two delegates.