e0995ea5ff
The RatchetTree leaf count must be computed from the rightmost non-null node, not the total serialized node count. Tree-validation vectors include trailing blank nodes that aren't part of the logical tree. Test results: 36/41 passing (88%). Remaining 5 failures: - EncryptWithLabel: X25519 DH result discrepancy with test vector - TreeOperations (2): tree_hash mismatch for trees with blank interior leaf slots (leaf count computation needs tree-topology-aware logic) - TranscriptHash (2): needs AuthenticatedContent decomposition https://claude.ai/code/session_01NocQDWj2Y92FugjfgazzL3