Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,20 @@ def main():
print(f" Block B: {block_b} Value: {to_hex(v_b)} Leaf: {to_hex(leaf_b)}")
print(f"\n🌳 Pair commitment (Merkle-style root over two leaves): {root}")
print(f"🔁 Value changed between blocks: {changed}")
if args.json:
import json
payload = {
"address": address,
"slot": slot,
"block_a": block_a,
"block_b": block_b,
"value_a": value_a,
"value_b": value_b,
"changed": (value_a != value_b),
"commitment_hex": pair_hex,
}
print(json.dumps(payload, indent=2, sort_keys=True))
return

if v_a == v_b:
print("✅ Soundness note: storage value is identical at both blocks; root binds the equality evidence.")
Expand Down