Draft
Conversation
There was a problem hiding this comment.
Pull Request Overview
This draft BEP defines a new precompiled contract to integrate Falcon post-quantum signature verification into BNB Chain and outlines a staged rollout including governance support.
- Introduces BEP-575 with metadata, summary, motivation, scope, and roadmap for Falcon PQ signatures.
- Specifies Phase 1 precompile ABI, gas cost, and input/output format.
- Provides implementation notes, test vector requirements, and security/backward-compatibility considerations.
Comments suppressed due to low confidence (2)
BEPs/BEP-575.md:61
- The unescaped
|in the table cell breaks markdown table rendering. Escape it (e.g.,\|) or reformat the cell so the pipe doesn’t split the column.
| **Return** | `uint256 (0 | 1)` success flag | |
BEPs/BEP-575.md:1
- [nitpick] Using an HTML
<pre>block for front-matter is unconventional in markdown. Consider switching to YAML front matter or fenced code blocks for better consistency and rendering.
<pre>
| ## 5. Technical Specification (Phase 1) | ||
|
|
||
| ```text | ||
| Input = mode(1) ‖ pk_len(2) ‖ pubkey ‖ sig_len(2) ‖ signature ‖ msg |
There was a problem hiding this comment.
The spec doesn’t state whether pk_len and sig_len are big- or little-endian. Explicitly specifying the byte-order for these 2-byte length fields will prevent ambiguity.
Suggested change
| Input = mode(1) ‖ pk_len(2) ‖ pubkey ‖ sig_len(2) ‖ signature ‖ msg | |
| Input = mode(1) ‖ pk_len(2, big-endian) ‖ pubkey ‖ sig_len(2, big-endian) ‖ signature ‖ msg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal: Integrating Falcon Post‑Quantum Signatures on BNB Chain
Draft – 6 May 2025
Proposal: Integrating Falcon Post‑Quantum Signatures on BNB Chain
1. Summary
2. Status
3. Motivation
4. Scope & Approach
5. Technical Specification (Phase 1)
6. Implementation Notes
7. Security Considerations
8. Backward Compatibility
9. Acknowledgements
1. Summary
This proposal introduces Falcon—the lattice‑based digital‑signature algorithm selected by NIST for standardisation—as a native cryptographic primitive on BNB Chain.
The roadmap is deliberately staged:
2. Status
Draft
3. Motivation
4. Scope & Approach
4.1 Phase 1 – Falcon Verification Precompile
0x0000…0falc(final nibble open for bikeshedding)falcon_verify(uint8 mode, bytes pubkey, bytes sig, bytes msg)0= Falcon‑512,1= Falcon‑1024Base 1 500 + 6 × ⌈msg.length/32⌉(benchmarked in geth; ≈1 800 gas for 32‑B digest)Rationale: The formula mirrors EIP‑7619 (Falcon‑512 precompile) and falls well below
ecrecover(3 000 gas), encouraging adoption while reflecting heavier computation.4.2 Phase 2 – Falcon‑Secured Voting
falcon_sigfield; tallying uses the precompile.5. Technical Specification (Phase 1)
Encoding: Use the compressed representations specified in the upcoming FIPS‑206 (FN‑DSA) draft.
6. Implementation Notes
go‑bncvia cgo; expose Go bindings matching the ABI above.7. Security Considerations
8. Backward Compatibility
The precompile is additive; existing contracts and wallets remain unaffected. Validators can opt‑in to PQ voting without forfeiting ECDSA capability.
9. Acknowledgements
Inspired by: