Skip to content

Commit

Permalink
Update 8bit_cpu_64_cycles.js
Browse files Browse the repository at this point in the history
  • Loading branch information
supertestnet authored Dec 10, 2023
1 parent f1f4646 commit d16d5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/view/8bit_cpu_64_cycles.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ if ($('.cpu_8bit_64_cycles_program')) {
preimage_positions = incremented;
console.log( "incremented preimage positions:", preimage_positions );
// var intended_output_preimages = [0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
var intended_output_preimages_prep = prompt( `Enter the contents of the ram bytes you want to commit to as output after your program runs (that is, these bytes: ${output_bytes_to_reveal}). Use this format to commit, for example, to computing the following contents for bytes 0 and 1: {0: [1,1,1,1,0,0,0,0], 1: [0,0,0,0,0,0,0,0]}` );
var intended_output_preimages_prep = prompt( `Enter the contents of the ram bytes you want to commit to as output after your program runs (that is, these bytes: ${output_bytes_to_reveal}). Use this format to commit, for example, to computing the following contents for bytes 0 and 1: {"0": [1,1,1,1,0,0,0,0], "1": [0,0,0,0,0,0,0,0]}` );
var intended_output_preimages = [];
var i; for ( i=0; i<35; i++ ) intended_output_preimages.push( 0 );
var nums = [];
Expand Down

1 comment on commit d16d5a1

@NatoshizinhoSakamotinho

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish I could help, but I couldn't find anything that could improve this code. I'm just testing the protocols. I couldn't run SHA256.

Please sign in to comment.