Skip to content

Refactor unifying augmented and not-augmented contracts#24

Merged
bigspider merged 2 commits intomasterfrom
refactor
Feb 2, 2026
Merged

Refactor unifying augmented and not-augmented contracts#24
bigspider merged 2 commits intomasterfrom
refactor

Conversation

@bigspider
Copy link
Collaborator

Thanks to the fact that the latest semantics of CCV (and therefore the tweak_embed_data helper) tweaking by a zero-length buffer is a no-operation on the public key, there is no longer the need to distinguish between 'augmented' and 'not augmented' contracts: all contracts can be assumed as containing some data, and for contracts that do nothing with that data, then the data is identically empty.

This allows simplifying several parts of the codebase, and removing case-base decisions in the ContractManager.

Thanks to the fact that the latest semantics of CCV (and therefore
the tweak_embed_data helper) tweaking by a zero-length buffer is a
no-operation on the public key, there is no longer the need to
distinguish between 'augmented' and 'not augmented' contracts: all
contracts can be assumed as containing some data, and for contracts
that do nothing with that data, then the data is identically empty.

This allows simplifying several parts of the codebase, and removing
case-base decisions in the ContractManager.
@bigspider bigspider merged commit a77134c into master Feb 2, 2026
1 check passed
@bigspider bigspider deleted the refactor branch February 2, 2026 13:58
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.

1 participant