Scope
WriteStateBuffer owns hashing and freezing the completed upload in #216. Verify that the final write freezes the buffer and later writes cannot mutate it; no separate FinalizeStateBuffer or seal instruction is needed.
Consumers must reject incomplete buffers and validate the buffer's account, commit id, and authority for their flow. Keep the API consistent with finalization during upload. This issue covers that integration contract, not a parallel implementation of buffer finalization.
Design: v2 implementation notes.
Outcome
Use automatic state-buffer finalization consistently across the v2 API and consuming instructions.
Scope
WriteStateBufferowns hashing and freezing the completed upload in #216. Verify that the final write freezes the buffer and later writes cannot mutate it; no separateFinalizeStateBufferor seal instruction is needed.Consumers must reject incomplete buffers and validate the buffer's account, commit id, and authority for their flow. Keep the API consistent with finalization during upload. This issue covers that integration contract, not a parallel implementation of buffer finalization.
Design: v2 implementation notes.
Outcome
Use automatic state-buffer finalization consistently across the v2 API and consuming instructions.