Skip to content

Misc fixes#53

Merged
davxy merged 2 commits into
mainfrom
misc-fixes
May 13, 2026
Merged

Misc fixes#53
davxy merged 2 commits into
mainfrom
misc-fixes

Conversation

@davxy
Copy link
Copy Markdown
Member

@davxy davxy commented May 13, 2026

  • Add ContextVec<T> (inline-3, spills to heap, capped at MAX_CONTEXTS on decode) with SCALE codec impls. AliasVec = ContextVec<Alias>. validate_multi_context / create_multi_context return it - the
    default single-context wrappers no longer heap-allocate.
  • Unify on a single MAX_CONTEXTS = 16. Drop RingSuiteExt::MAX_VRF_CONTEXTS and the mock's local bound.
  • Collapse RingVrfOutputs Single/Multi into a newtype around ContextVec; the inline/heap split is now ContextVec's job.
  • MockProof.aliases uses ContextVec<Alias> instead of BoundedVec. Wire format unchanged.
  • Guard create_multi_context against contexts.len() > MAX_CONTEXTS.

@davxy davxy merged commit 4f7df31 into main May 13, 2026
8 checks passed
@davxy davxy deleted the misc-fixes branch May 13, 2026 09:52
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