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 b9369b1 commit c30db2a
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 @@ -94,7 +94,7 @@ if ($('.cpu_8bit_64_cycles_program')) {
//var preimage_positions = [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162];
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 revealed_output_preimages = [];
preimage_positions.forEach( ( item, index ) => {console.log( subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )], index, intended_output_preimages[ index ], subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )][ intended_output_preimages[ index ] ] );revealed_output_preimages.push( subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )][ intended_output_preimages[ index ] ] );} );
preimage_positions.forEach( ( item, index ) => {console.log( subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )], item, intended_output_preimages[ item ], subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )][ intended_output_preimages[ item ] ] );revealed_output_preimages.push( subsequent_commitment_preimages[subsequent_commitment_preimages.length - ( 163 - item )][ intended_output_preimages[ item ] ] );} );
var message_to_vicky = {
program: "8bit cpu with 64 cyles",
preimage_positions,
Expand Down

0 comments on commit c30db2a

Please sign in to comment.