Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/zstd witgen compressed block #1092

Merged
merged 179 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
b2406d7
reconsolidate messy code on working branch
darth-cy Jan 11, 2024
3a60cc8
correct huffman header processing
darth-cy Jan 11, 2024
6377d8c
correct jump table
darth-cy Jan 11, 2024
cb31d73
huffman code direct representation
darth-cy Jan 11, 2024
63fbcec
Resolve merge conflicts
darth-cy Jan 15, 2024
77caadd
reserve huffman header decoding
darth-cy Jan 16, 2024
85a096d
jump table correction
darth-cy Jan 16, 2024
bcc7517
correct jump table type
darth-cy Jan 16, 2024
e865e0e
resolve merge conflicts
darth-cy Jan 16, 2024
bf9051e
delimitation of bitstream for accumulation witness
darth-cy Jan 17, 2024
87ceb2f
Finish decoding bitstreams
darth-cy Jan 18, 2024
430f8cd
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 18, 2024
ba8303b
Add lstream decoding witness rows
darth-cy Jan 18, 2024
fa4d53c
Add witness rows for huffman bitstream decoding
darth-cy Jan 18, 2024
7d5d658
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 18, 2024
768800e
remove constant from merge
darth-cy Jan 18, 2024
d29b10f
Restore default witness value for correction
darth-cy Jan 18, 2024
fb2f910
Remove decoded from FSE Huffman
darth-cy Jan 18, 2024
abc7b30
correct jump table witness
darth-cy Jan 19, 2024
03ec04f
Modify direct rep
darth-cy Jan 19, 2024
df9954a
correct fse witness
darth-cy Jan 19, 2024
b765b89
adjust test
darth-cy Jan 19, 2024
eea6aaa
Verify FSE interleaved decoding
darth-cy Jan 19, 2024
7431f20
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 19, 2024
8913d68
tag fix
darth-cy Jan 19, 2024
d24d84b
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 22, 2024
469592f
Remove accuracy log from auxiliary table
darth-cy Jan 22, 2024
64d90ca
Consolidate huffman weights subroutine into one tag
darth-cy Jan 22, 2024
21fdacc
correct size format parsing
darth-cy Jan 22, 2024
6256155
add huffman code routine for recovering bitstring
darth-cy Jan 22, 2024
4df78c3
remove imports
darth-cy Jan 22, 2024
4b1e7a2
Add bitstream decoding test
darth-cy Jan 22, 2024
1f7c42f
complete unit test coverage of literal decoding
darth-cy Jan 23, 2024
854fbc4
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 25, 2024
1643bf3
remove direct representation of huffman code
darth-cy Jan 25, 2024
c819524
correct witness generation
darth-cy Jan 25, 2024
cce8a06
Correct witness values
darth-cy Jan 25, 2024
0376352
Correct idx incremental block
darth-cy Jan 25, 2024
3a282a6
Correct tag next
darth-cy Jan 25, 2024
fabcaeb
Correct tag_idx
darth-cy Jan 26, 2024
2e9f924
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 28, 2024
a8f9d15
Correct tag value accumulator
darth-cy Jan 29, 2024
b9a8ece
Correct huffman data byte offset
darth-cy Jan 29, 2024
1b8ed3d
Correct witness values
darth-cy Jan 29, 2024
a22100b
Remove import
darth-cy Jan 29, 2024
5a80fac
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 29, 2024
cf5954b
Correct comments on decoding constants
darth-cy Jan 29, 2024
5f60c47
Introduce tag_rlc
darth-cy Jan 29, 2024
d966c03
Correct multiplier for tag
darth-cy Jan 31, 2024
58fbda8
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Jan 31, 2024
3c119e8
Clean up and consolidate working example circuit assignment test
darth-cy Jan 31, 2024
f2d4f7a
Assignment correction
darth-cy Jan 31, 2024
297ccbb
Add column assignments
darth-cy Jan 31, 2024
5c79390
Organize constraint blocks
darth-cy Feb 1, 2024
b97c8b9
Recover constraints
darth-cy Feb 1, 2024
0e02870
Recover constraints
darth-cy Feb 1, 2024
61103cb
Add tag change assignment
darth-cy Feb 1, 2024
6ad37c2
Recover constraints
darth-cy Feb 1, 2024
18d5528
Recover constraints
darth-cy Feb 1, 2024
48bd75c
Recover constraints
darth-cy Feb 1, 2024
bd72597
Recover constraints
darth-cy Feb 1, 2024
d1803fc
Recover constraints
darth-cy Feb 1, 2024
e168dbd
Recover constraints
darth-cy Feb 1, 2024
aa1b445
Recover constraints
darth-cy Feb 1, 2024
8aa7c8f
Recover constraints
darth-cy Feb 1, 2024
697fb6a
Recover constraints
darth-cy Feb 1, 2024
7ee0ca3
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Feb 1, 2024
3f89580
Adjust constraint blocks
darth-cy Feb 1, 2024
212b166
Reassign comparator
darth-cy Feb 2, 2024
914c047
Recover constraints
darth-cy Feb 4, 2024
3ff91a1
Recover constraints
darth-cy Feb 4, 2024
fdfab24
Recover constraints
darth-cy Feb 4, 2024
ed6c6ed
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Feb 4, 2024
6d8f328
Correct Constraints
darth-cy Feb 4, 2024
a6315cb
Correct constraints
darth-cy Feb 4, 2024
cf8bf18
Correct constraints
darth-cy Feb 5, 2024
4fafb5b
Annotate test data
darth-cy Feb 5, 2024
96c9ce0
Merge branch 'feat/zstd-witgen' into feat/zstd-witgen-compressed-block
darth-cy Feb 5, 2024
56fa004
Resolve merge issues
darth-cy Feb 5, 2024
cf49db2
Examine constraints
darth-cy Feb 6, 2024
f350db7
Assign lstream config
darth-cy Feb 6, 2024
e912815
Recover constraints
darth-cy Feb 6, 2024
120fb31
Recover constraints
darth-cy Feb 6, 2024
8fa9265
Recover constraints
darth-cy Feb 6, 2024
b0af904
Add more bitstream witnesses
darth-cy Feb 6, 2024
7c6c2bd
Recover constraints
darth-cy Feb 6, 2024
7c85b9b
Recover constraints
darth-cy Feb 6, 2024
ad74478
Remove comments
darth-cy Feb 6, 2024
214f582
Correct tag_rlc_acc constraint and assignment
darth-cy Feb 7, 2024
f3aadce
Correct tag_rlc constraints and assignment
darth-cy Feb 7, 2024
3f93c0e
Correct tag_rlc constraint and assignments:
darth-cy Feb 7, 2024
b85b73f
Recover constraints
darth-cy Feb 7, 2024
d8b5107
Adjust huffman code idx
darth-cy Feb 8, 2024
439ee6c
Revert "Adjust huffman code idx"
darth-cy Feb 8, 2024
580ee11
Correct byte delimitation in the test
darth-cy Feb 8, 2024
b52cbf5
Recover constraints
darth-cy Feb 8, 2024
7032e43
Recover constraints
darth-cy Feb 8, 2024
f558944
Assign block gadget
darth-cy Feb 8, 2024
f28979c
Recover constraints
darth-cy Feb 8, 2024
51bc505
Recover constraints
darth-cy Feb 8, 2024
f102ea9
Recover constraints
darth-cy Feb 8, 2024
c72d43a
Recover constraints
darth-cy Feb 8, 2024
0070ab8
Correct tag value acc again
darth-cy Feb 8, 2024
52323b9
Recover constraints
darth-cy Feb 8, 2024
52c74fc
Correct decoding constraints
darth-cy Feb 8, 2024
9ceb455
Correct assignment for fcs
darth-cy Feb 8, 2024
62aee83
Rand power correction
darth-cy Feb 8, 2024
5967e56
Correct constraints
darth-cy Feb 8, 2024
0f27e61
Correct fcs
darth-cy Feb 9, 2024
63260d9
Correct block header
darth-cy Feb 9, 2024
cc940bc
Correct tag lookup
darth-cy Feb 9, 2024
b1b3b88
Recover constraint
darth-cy Feb 9, 2024
980ecd1
Recover constraint
darth-cy Feb 9, 2024
68d1545
Recover constraints
darth-cy Feb 9, 2024
b4e7ffd
Recover constraint
darth-cy Feb 9, 2024
6353759
Correct lookup
darth-cy Feb 9, 2024
2a8bfe8
Correct witness values
darth-cy Feb 11, 2024
97cd39e
Bitstream decoder idx transition fix
darth-cy Feb 11, 2024
83b24d7
Correct FSE processing
darth-cy Feb 11, 2024
eee8af2
Cover fse section in bitstream transition
darth-cy Feb 11, 2024
a8c0a78
Correct Value RLC
darth-cy Feb 11, 2024
07d5846
format
darth-cy Feb 11, 2024
e9c3a17
Add FSE decoding
darth-cy Feb 12, 2024
bafd696
Add more assignments
darth-cy Feb 12, 2024
cc45995
Complete witness fix
darth-cy Feb 12, 2024
8a05d09
Correct size calculation
darth-cy Feb 12, 2024
eb2ed1d
Correct bit boundary assignment
darth-cy Feb 12, 2024
95af817
Correct FSE counting
darth-cy Feb 12, 2024
019d515
Correct FSE transition
darth-cy Feb 12, 2024
69a572a
Correct accuracy log bit reading
darth-cy Feb 12, 2024
f1bfafa
Recover constraints
darth-cy Feb 12, 2024
def666f
Recover constraints
darth-cy Feb 12, 2024
2b39d39
Recover constraints
darth-cy Feb 12, 2024
8e50909
Recover constraints
darth-cy Feb 12, 2024
7917ae5
Assign into bitstream accumulation for spanned
darth-cy Feb 12, 2024
eb43005
Recover lookups
darth-cy Feb 12, 2024
c867ed6
Construct contained bitstreams
darth-cy Feb 12, 2024
c7c7ed1
Recdover lookups
darth-cy Feb 12, 2024
7f11598
Recover lookups
darth-cy Feb 12, 2024
b5dd724
Remove debug flags
darth-cy Feb 12, 2024
6c5a928
Correct n_acc for FSE
darth-cy Feb 12, 2024
9fd0b2b
LiteralHeader decomposition
darth-cy Feb 12, 2024
91db4be
Add dummy row
darth-cy Feb 12, 2024
025bc3d
Restore state
darth-cy Feb 12, 2024
88c8477
FSE initial condition
darth-cy Feb 12, 2024
c845106
Remove debug flags
darth-cy Feb 12, 2024
b4d95d8
Correct constraint
darth-cy Feb 12, 2024
c017103
Assign fse table
darth-cy Feb 13, 2024
320724d
Recover lookup
darth-cy Feb 13, 2024
c2fecde
Recover lookup
darth-cy Feb 13, 2024
8b1d620
Recover lookup
darth-cy Feb 13, 2024
14f4372
Recover lookup
darth-cy Feb 13, 2024
9168ac8
Add comments
darth-cy Feb 13, 2024
b5fcdab
Recover constraint
darth-cy Feb 13, 2024
e3abbf3
Remove debug flag
darth-cy Feb 13, 2024
f6ffa62
assignment to LiteralsHeaderTable
roynalnaruto Feb 13, 2024
1ad05d0
introduce is_nil for bitstream_decoder that is set when no bits are read
roynalnaruto Feb 13, 2024
3c4a195
todo: debug
roynalnaruto Feb 13, 2024
7ac2730
Add comment
darth-cy Feb 14, 2024
8c6559b
Merge branch 'fix/zstd-bitstream-lookups' into feat/zstd-witgen-compr…
darth-cy Feb 14, 2024
b57c519
Remove comment
darth-cy Feb 14, 2024
d56df52
Correct bit boundaries reconstruction
darth-cy Feb 14, 2024
7f366b9
Adjust constraints
darth-cy Feb 14, 2024
cbf1666
Correct bitstring accumulation constraints
darth-cy Feb 14, 2024
f12d943
Fix fse table lookup
darth-cy Feb 14, 2024
a2677c8
Add conditions to fix lookups
darth-cy Feb 14, 2024
8526a4a
Remove debug flag
darth-cy Feb 14, 2024
c65e52c
Correct branch assignment
darth-cy Feb 14, 2024
3a9f4bd
Remove debug flag
darth-cy Feb 14, 2024
2d109f7
Organize constraints
darth-cy Feb 14, 2024
caab0fe
fmt
darth-cy Feb 14, 2024
3fce532
fmt again
roynalnaruto Feb 14, 2024
d506022
literals header lookup fix
roynalnaruto Feb 14, 2024
41896ff
clippy
darth-cy Feb 14, 2024
90ca1e7
clippy
darth-cy Feb 15, 2024
a698b09
clippy
darth-cy Feb 15, 2024
c07da09
Clippy
darth-cy Feb 15, 2024
dea3e76
clippy
darth-cy Feb 15, 2024
1570ed2
decoded literals table | refactor tables module
roynalnaruto Feb 15, 2024
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
1,498 changes: 960 additions & 538 deletions zkevm-circuits/src/decompression_circuit.rs

Large diffs are not rendered by default.

25 changes: 24 additions & 1 deletion zkevm-circuits/src/decompression_circuit/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use crate::{
},
table::{
decompression::{
BitstringAccumulationTable, FseTable, HuffmanCodesTable, LiteralsHeaderTable,
BitstringAccumulationTable, DecodedLiteralsTable, FseTable, HuffmanCodesTable,
LiteralsHeaderTable,
},
BitwiseOpTable, KeccakTable, Pow2Table, PowOfRandTable, RangeTable,
},
Expand All @@ -19,6 +20,7 @@ use crate::{

impl<F: Field> Circuit<F> for DecompressionCircuit<F> {
type Config = (DecompressionCircuitConfig<F>, Challenges);

type FloorPlanner = SimpleFloorPlanner;
#[cfg(feature = "circuit-params")]
type Params = ();
Expand Down Expand Up @@ -51,6 +53,8 @@ impl<F: Field> Circuit<F> for DecompressionCircuit<F> {
range16,
range64,
);
let decoded_literals_table =
DecodedLiteralsTable::construct(meta, challenge_exprs.clone(), range256);

let config = DecompressionCircuitConfig::new(
meta,
Expand All @@ -60,7 +64,12 @@ impl<F: Field> Circuit<F> for DecompressionCircuit<F> {
huffman_codes_table,
bs_acc_table,
literals_header_table,
decoded_literals_table,
bitwise_op_table,
range4,
range8,
range16,
range64,
range128,
range256,
pow2_table,
Expand All @@ -78,6 +87,20 @@ impl<F: Field> Circuit<F> for DecompressionCircuit<F> {
mut layouter: impl Layouter<F>,
) -> Result<(), Error> {
let challenges = &config.1.values(&layouter);

config.0.bitwise_op_table.load(&mut layouter)?;
config.0.range4.load(&mut layouter)?;
config.0.range8.load(&mut layouter)?;
config.0.range16.load(&mut layouter)?;
config.0.range64.load(&mut layouter)?;
config.0.range128.load(&mut layouter)?;
config.0.range256.load(&mut layouter)?;
config.0.tag_rom_table.load(&mut layouter)?;
config.0.pow_rand_table.assign(&mut layouter, challenges)?;
config.0.block_type_rom_table.load(&mut layouter)?;
config.0.pow2_table.load(&mut layouter)?;
config.0.literals_header_rom_table.load(&mut layouter)?;

self.synthesize_sub(&config.0, challenges, &mut layouter)
}
}
74 changes: 72 additions & 2 deletions zkevm-circuits/src/decompression_circuit/test.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#[test]
fn test_basic() {
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};

use crate::decompression_circuit::DecompressionCircuit;
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};

let circuit = DecompressionCircuit::<Fr>::default();
let mock_prover = MockProver::run(17, &circuit, vec![]);
Expand All @@ -14,3 +13,74 @@ fn test_basic() {

mock_prover.assert_satisfied_par();
}

#[test]
fn test_work_example_decompression() {
use crate::decompression_circuit::DecompressionCircuit;
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};

let compressed: Vec<u8> = vec![
// 0x28, 0xb5, 0x2f, 0xfd, // magic numbers are removed
0x60, // Originally 0x64. unset the checksum bit.
0xae, 0x02, // FrameContentSize
0x0d, 0x11, 0x00, // BlockHeader
0x76, 0x62, 0x5e, // ZstdBlockLiteralsHeader
0x23, 0x30, 0x6f, 0x9b, 0x03, // ZstdBlockFseCode
// ZstdBlockHuffmanCode
0x7d, 0xc7, 0x16, 0x0b, 0xbe, 0xc8, 0xf2, 0xd0, 0x22, 0x4b, 0x6b, 0xbc, 0x54, 0x5d, 0xa9,
0xd4, 0x93, 0xef, 0xc4, 0x54, 0x96, 0xb2, 0xe2, 0xa8, 0xa8, 0x24, 0x1c, 0x54, 0x40, 0x29,
0x01, // ZstdBlockJumpTable
0x55, 0x00, 0x57, 0x00, 0x51, 0x00, // LStream1
0xcc, 0x51, 0x73, 0x3a, 0x85, 0x9e, 0xf7, 0x59, 0xfc, 0xc5, 0xca, 0x6a, 0x7a, 0xd9, 0x82,
0x9c, 0x65, 0xc5, 0x45, 0x92, 0xe3, 0x0d, 0xf3, 0xef, 0x71, 0xee, 0xdc, 0xd5, 0xa2, 0xe3,
0x48, 0xad, 0xa3, 0xbc, 0x41, 0x7a, 0x3c, 0xaa, 0xd6, 0xeb, 0xd0, 0x77, 0xea, 0xdc, 0x5d,
0x41, 0x06, 0x50, 0x1c, 0x49, 0x0f, 0x07, 0x10, 0x05, 0x88, 0x84, 0x94, 0x02, 0xfc, 0x3c,
0xe3, 0x60, 0x25, 0xc0, 0xcb, 0x0c, 0xb8, 0xa9, 0x73, 0xbc, 0x13, 0x77, 0xc6, 0xe2, 0x20,
0xed, 0x17, 0x7b, 0x12, 0xdc, 0x24, 0x5a, 0xdf, 0xb4, 0x21, // LStream2
0x9a, 0xcb, 0x8f, 0xc7, 0x58, 0x54, 0x11, 0xa9, 0xf1, 0x47, 0x82, 0x9b, 0xba, 0x60, 0xb4,
0x92, 0x28, 0x0e, 0xfb, 0x8b, 0x1e, 0x92, 0x23, 0x6a, 0xcf, 0xbf, 0xe5, 0x45, 0xb5, 0x7e,
0xeb, 0x81, 0xf1, 0x78, 0x4b, 0xad, 0x17, 0x4d, 0x81, 0x9f, 0xbc, 0x67, 0xa7, 0x56, 0xee,
0xb4, 0xd9, 0xe1, 0x95, 0x21, 0x66, 0x0c, 0x95, 0x83, 0x27, 0xde, 0xac, 0x37, 0x20, 0x91,
0x22, 0x07, 0x0b, 0x91, 0x86, 0x94, 0x1a, 0x7b, 0xf6, 0x4c, 0xb0, 0xc0, 0xe8, 0x2e, 0x49,
0x65, 0xd6, 0x34, 0x63, 0x0c, 0x88, 0x9b, 0x1c, 0x48, 0xca, 0x2b, 0x34,
// LStream3
0xa9, 0x6b, 0x99, 0x3b, 0xee, 0x13, 0x3b, 0x7c, 0x93, 0x0b, 0xf7, 0x0d, 0x49, 0x69, 0x18,
0x57, 0xbe, 0x3b, 0x64, 0x45, 0x1d, 0x92, 0x63, 0x7f, 0xe8, 0xf9, 0xa1, 0x19, 0x7b, 0x7b,
0x6e, 0xd8, 0xa3, 0x90, 0x23, 0x82, 0xf4, 0xa7, 0xce, 0xc8, 0xf8, 0x90, 0x15, 0xb3, 0x14,
0xf4, 0x40, 0xe7, 0x02, 0x78, 0xd3, 0x17, 0x71, 0x23, 0xb1, 0x19, 0xad, 0x6b, 0x49, 0xae,
0x13, 0xa4, 0x75, 0x38, 0x51, 0x47, 0x89, 0x67, 0xb0, 0x39, 0xb4, 0x53, 0x86, 0xa4, 0xac,
0xaa, 0xa3, 0x34, 0x89, 0xca, 0x2e, // LStream4
0xe9, 0xc1, 0xfe, 0xf2, 0x51, 0xc6, 0x51, 0x73, 0xaa, 0xf7, 0x9d, 0x2d, 0xed, 0xd9, 0xb7,
0x4a, 0xb2, 0xb2, 0x61, 0xe4, 0xef, 0x98, 0xf7, 0xc5, 0xef, 0x51, 0x9b, 0xd8, 0xdc, 0x60,
0x6c, 0x41, 0x76, 0xaf, 0x78, 0x1a, 0x62, 0xb5, 0x4c, 0x1e, 0x21, 0x39, 0x9a, 0x5f, 0xac,
0x9d, 0xe0, 0x62, 0xe8, 0xe9, 0x2f, 0x2f, 0x48, 0x02, 0x8d, 0x53, 0xc8, 0x91, 0xf2, 0x1a,
0xd2, 0x7c, 0x0a, 0x7c, 0x48, 0xbf, 0xda, 0xa9, 0xe3, 0x38, 0xda, 0x34, 0xce, 0x76, 0xa9,
0xda, 0x15, 0x91, 0xde, 0x21, 0xf5, 0x55, // Sequence Section
0x46, 0xa8, 0x21, 0x9d, 0x51, 0xcc, 0x18, 0x42, 0x44, 0x81, 0x8c, 0x94, 0xb4, 0x50, 0x1e,
0x20, 0x42, 0x82, 0x98, 0xc2, 0x3b, 0x10, 0x48, 0xec, 0xa6, 0x39, 0x63, 0x13, 0xa7, 0x01,
0x94, 0x40, 0xff, 0x88, 0x0f, 0x98, 0x07, 0x4a, 0x46, 0x38, 0x05, 0xa9, 0xcb, 0xf6, 0xc8,
0x21, 0x59, 0xaa, 0x38, 0x45, 0xbf, 0x5c, 0xf8, 0x55, 0x9e, 0x9f, 0x04, 0xed, 0xc8, 0x03,
0x42, 0x2a, 0x4b, 0xf6, 0x78, 0x7e, 0x23, 0x67, 0x15, 0xa2, 0x79, 0x29, 0xf4, 0x9b, 0x7e,
0x00, 0xbc, 0x2f, 0x46, 0x96, 0x99, 0xea, 0xf1, 0xee, 0x1c, 0x6e, 0x06, 0x9c, 0xdb, 0xe4,
0x8c, 0xc2, 0x05, 0xf7, 0x54, 0x51, 0x84, 0xc0, 0x33, 0x02, 0x01, 0xb1, 0x8c, 0x80, 0xdc,
0x99, 0x8f, 0xcb, 0x46, 0xff, 0xd1, 0x25, 0xb5, 0xb6, 0x3a, 0xf3, 0x25, 0xbe, 0x85, 0x50,
0x84, 0xf5, 0x86, 0x5a, 0x71, 0xf7, 0xbd, 0xa1, 0x4c, 0x52, 0x4f, 0x20, 0xa3, 0x61, 0x23,
0x77, 0x12, 0xd3, 0xb1, 0x58, 0x75, 0x22, 0x01, 0x12, 0x70, 0xec, 0x14, 0x91, 0xf9, 0x85,
0x61, 0xd5, 0x7e, 0x98, 0x84, 0xc9, 0x76, 0x84, 0xbc, 0xb8, 0xfe, 0x4e, 0x53, 0xa5, 0x06,
0x82, 0x14, 0x95, 0x51,
];

let decompression_circuit = DecompressionCircuit::<Fr> {
compressed_frames: vec![compressed],
_data: Default::default(),
};

let mock_prover = MockProver::run(18, &decompression_circuit, vec![]);

let mock_prover = mock_prover.unwrap();
if let Err(errors) = mock_prover.verify_par() {
log::debug!("errors.len() = {}", errors.len());
}

mock_prover.assert_satisfied_par();
}
Loading
Loading