Skip to content

Commit

Permalink
moved fixtures and proofs out of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwen01 committed Oct 8, 2024
1 parent e953f25 commit e5558b5
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/script/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn main() {
};

// Where to save / load the proof from.
let proof_file = format!("../proofs/{}_proof.bin", args.elf);
let proof_file = format!("../../proofs/{}_proof.bin", args.elf);

// Only generate a proof if the prove flag is set.
if args.prove {
Expand All @@ -100,7 +100,7 @@ fn main() {
// Load the proof from the file, and convert it to a fixture.
let sp1_proof_with_public_values = SP1ProofWithPublicValues::load(&proof_file).unwrap();
let fixture = SP1ProofFixture::from(sp1_proof_with_public_values);
let fixture_file = format!("../proof-fixtures/{}_fixture.bin", args.elf);
let fixture_file = format!("../../proof-fixtures/{}_fixture.bin", args.elf);
fixture.save(&fixture_file).unwrap();

// Verify the proof.
Expand Down
4 changes: 2 additions & 2 deletions example/solana/tests/counter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Verify Groth16 Solana', async () => {
tx.add(setComputeUnitLimitIx);

// Set up and add the verify instruction to the transaction.
const verifyIx: TransactionInstruction = createVerifyInstruction(payer.publicKey, '../proof-fixtures/fibonacci_fixture.bin');
const verifyIx: TransactionInstruction = createVerifyInstruction(payer.publicKey, '../../proof-fixtures/fibonacci_fixture.bin');
tx.add(verifyIx);

// Set the blockhash.
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Verify Groth16 Solana', async () => {
tx.add(setComputeUnitLimitIx);

// Set up and add the verify instruction to the transaction.
const verifyIx: TransactionInstruction = createVerifyInstruction(payer.publicKey, '../proof-fixtures/fibonacci_fixture_bad.bin');
const verifyIx: TransactionInstruction = createVerifyInstruction(payer.publicKey, '../../proof-fixtures/fibonacci_fixture_bad.bin');
tx.add(verifyIx);

// Set the blockhash.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e5558b5

Please sign in to comment.