magicblock-labs / magicblock-labs/delegation-program
Implement WriteStateBuffer
@snawaz is already working on this.
Since Sep 17, 2026.
- Dominant language
- Rust
- Stars
- 30
- Forks
- 21
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Description
Scope
Create and grow the DLP-owned buffer at ["state-buffer", account, commit_id, authority], with matching header fields. Require the authority's signature and sequential writes with offset == written_len.
When the uploaded length reaches total_len, hash the data and freeze the buffer; reject further mutation. The writer is authority-specific, not operator-only: consuming instructions validate whether that authority is the operator or challenger for their flow.
This issue owns the upload and automatic-finalization implementation. #217 covers consistency of that contract across consumers and the API, not a second finalize instruction.
Design: v2 implementation notes.
Outcome
Upload and automatically finalize authority-bound account-state buffers through WriteStateBuffer.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.