Skip to content

Commit

Permalink
feat(headers_proof): handle public inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidLuckylee committed Mar 8, 2023
1 parent f8d3584 commit 90488ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/headers_chain_proof/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ func main{
//Validate all blocks in this batch
let (final_chain_state, block_header_pedersen_hashes) = validate_block_headers{hash_ptr = pedersen_ptr}(start_chain_state, batch_size);

//TODO: recurse - verifier then checks if the starting state = end state of previous batch
recurse(block_height, program_hash, start_chain_state, merkle_root);

// TODO think about how to accumulate and generate a (merkle) proof such that block X is in merkle_root without knowing the batch size in each step
Expand Down
2 changes: 1 addition & 1 deletion src/headers_chain_proof/state_0.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"block_height": -1, "total_work": 0, "best_block_hash": "0000000000000000000000000000000000000000000000000000000000000000", "current_target": 486604799, "epoch_start_time": 0, "prev_timestamps": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "batch_size": 32}
{"block_height": -1, "total_work": 0, "best_block_hash": "0000000000000000000000000000000000000000000000000000000000000000", "current_target": 486604799, "epoch_start_time": 0, "prev_timestamps": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "batch_size": 32, "program_hash" : "0"}

0 comments on commit 90488ab

Please sign in to comment.