Skip to content

Conversation

ypatil12
Copy link
Collaborator

Motivation:

If the weights array has a different length or stake composition, cert verification would silently fail. There is no way to enforce this for BN254. To opt for similar behavior, we clarify this in our natspec.

Modifications:

Update natspec/docs on risks of different array lengths.

Result:

Clearer code

@ypatil12 ypatil12 force-pushed the docs/document-diff-array-lengths branch from 5a70c22 to 5f6006c Compare July 25, 2025 14:50
@ypatil12 ypatil12 merged commit 9400875 into release-dev/multichain-audit-fixes Jul 28, 2025
9 checks passed
@ypatil12 ypatil12 deleted the docs/document-diff-array-lengths branch July 28, 2025 14:56
ypatil12 added a commit that referenced this pull request Jul 29, 2025
**Motivation:**

If the `weights` array has a different length or stake composition, cert
verification would silently fail. There is no way to enforce this for
BN254. To opt for similar behavior, we clarify this in our natspec.

**Modifications:**

Update natspec/docs on risks of different array lengths. 

**Result:**

Clearer code

---------

Co-authored-by: Nadir Akhtar <nadir-akhtar@users.noreply.github.com>
ypatil12 added a commit that referenced this pull request Jul 31, 2025
**Motivation:**

If the `weights` array has a different length or stake composition, cert
verification would silently fail. There is no way to enforce this for
BN254. To opt for similar behavior, we clarify this in our natspec.

**Modifications:**

Update natspec/docs on risks of different array lengths. 

**Result:**

Clearer code

---------

Co-authored-by: Nadir Akhtar <nadir-akhtar@users.noreply.github.com>
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.

3 participants