docs: add crosslink chain semantics reference for byte order, staking cycle, fat pointer, and bond privacy - #19
Open
Zk-nd3r wants to merge 1 commit into
Conversation
Covers finalizer pub_key byte order, the 150/70 staking cycle, fat pointer quorum semantics, and bond privacy, with each claim pinned to code by path and symbol name. Verified against s1_dev. Two corrections against the original April draft: the GUI staking-day indicator now keys off the unfinalized tip (bc_tip_height), not the finalized one, and get_vote_template leaves the finalizer pubkey zeroed with inflate() filling it in per signature.
Zk-nd3r
force-pushed
the
zk-nd3r/crosslink-chain-semantics-docs
branch
from
July 29, 2026 18:53
f82cf2d to
82ff3e9
Compare
Contributor
Author
|
Rebased onto
Also added: Citations are now path plus symbol name so they stay usable as line numbers drift. Still no equivalent doc anywhere in the tree. |
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.
Summary
CHAIN_SEMANTICS.mdat the repo root because the monorepo root does not currently have a top-leveldocs/directory.Why these sections exist
get_tfl_roster_zatsreturns raw-order hex fromRosterMember.pub_key.Sources:
librustzcash/zcash_primitives/src/bft.rs:335-356,tenderlink/src/lib.rs:594-597,tenderlink/src/lib.rs:825-839,librustzcash/zcash_primitives/src/transaction/mod.rs:1415-1438,zebra-crosslink/wallet/src/lib.rs:3431-3487,zebra-gui/src/ui.rs:2847-2850.Sources:
zebra-crosslink/zebra-consensus/src/transaction.rs:863-870,zebra-crosslink/zebra-consensus/src/transaction.rs:936-967,zebra-crosslink/zebra-consensus/src/error.rs:239-247,zebra-crosslink/zebra-crosslink/src/viz2.rs:155-160,zebra-gui/src/lib.rs:66-68,zebra-gui/src/ui.rs:1142.NILprecommit signatures for the decided proposal and reflects a2f+1quorum threshold, not the full participant set.Sources:
zebra-crosslink/zebra-chain/src/block/header.rs:110-111,zebra-crosslink/zebra-rpc/src/methods.rs:1958-1972,librustzcash/zcash_primitives/src/bft.rs:423-425,librustzcash/zcash_primitives/src/bft.rs:493-519,tenderlink/src/lib.rs:132-154,tenderlink/src/lib.rs:576,tenderlink/src/lib.rs:844-856,tenderlink/src/lib.rs:985-991,tenderlink/src/lib.rs:1142-1148.unique_pubkey, and the privacy rationale was confirmed in the channel today as a tooling issue rather than a hidden protocol alternative.Sources:
librustzcash/zcash_primitives/src/transaction/mod.rs:1445-1463,zebra-crosslink/wallet/src/lib.rs:935-936,zebra-crosslink/wallet/src/lib.rs:1951-1969,zebra-crosslink/wallet/src/lib.rs:4288-4300,zebra-gui/src/ui.rs:1144-1149, plus channel consensus from today for the privacy tradeoff note.Test plan
cargo checkis not required for this docs-only change.