@@ -5,33 +5,33 @@ import (
55 "os"
66 "testing"
77
8- "github.com/yetanotherco /aligned_layer/operator/mina "
8+ "github.com/lambdaclass /aligned_layer/operator/mina_account "
99)
1010
1111func TestMinaStateProofVerifies (t * testing.T ) {
1212 fmt .Println (os .Getwd ())
13- proofFile , err := os .Open ("../../batcher/aligned/test_files/mina/protocol_state .proof" )
13+ proofFile , err := os .Open ("../../batcher/aligned/test_files/mina/account_B62qrQKS9ghd91shs73TCmBJRW9GzvTJK443DPx2YbqcyoLc56g1ny9 .proof" )
1414 if err != nil {
15- t .Errorf ("could not open mina state proof file" )
15+ t .Errorf ("could not open mina account proof file" )
1616 }
1717
1818 proofBuffer := make ([]byte , mina .MAX_PROOF_SIZE )
1919 proofLen , err := proofFile .Read (proofBuffer )
2020 if err != nil {
21- t .Errorf ("could not read bytes from mina state proof file" )
21+ t .Errorf ("could not read bytes from mina account proof file" )
2222 }
2323
24- pubInputFile , err := os .Open ("../../batcher/aligned/test_files/mina/protocol_state .pub" )
24+ pubInputFile , err := os .Open ("../../batcher/aligned/test_files/mina/account_B62qrQKS9ghd91shs73TCmBJRW9GzvTJK443DPx2YbqcyoLc56g1ny9 .pub" )
2525 if err != nil {
26- t .Errorf ("could not open mina state hash file" )
26+ t .Errorf ("could not open mina account pub inputs file" )
2727 }
2828 pubInputBuffer := make ([]byte , mina .MAX_PUB_INPUT_SIZE )
2929 pubInputLen , err := pubInputFile .Read (pubInputBuffer )
3030 if err != nil {
31- t .Errorf ("could not read bytes from mina state hash" )
31+ t .Errorf ("could not read bytes from mina account pub inputs hash" )
3232 }
3333
34- if ! mina . VerifyProtocolStateProof (([mina .MAX_PROOF_SIZE ]byte )(proofBuffer ), uint (proofLen ), ([mina .MAX_PUB_INPUT_SIZE ]byte )(pubInputBuffer ), uint (pubInputLen )) {
34+ if ! mina_account . VerifyAccountInclusion (([mina .MAX_PROOF_SIZE ]byte )(proofBuffer ), uint (proofLen ), ([mina .MAX_PUB_INPUT_SIZE ]byte )(pubInputBuffer ), uint (pubInputLen )) {
3535 t .Errorf ("proof did not verify" )
3636 }
3737}
0 commit comments