From fa28677acca9f167bed867c4856a93de1f05a1b4 Mon Sep 17 00:00:00 2001 From: Siddy J Date: Mon, 20 Nov 2023 15:58:39 -0800 Subject: [PATCH] added gitignore --- .DS_Store | Bin 6148 -> 8196 bytes .gitignore | 3 +++ data/.DS_Store | Bin 6148 -> 6148 bytes merkle_util_test.go | 5 ++++- 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.DS_Store b/.DS_Store index baacae4d90e0eae0ae7e76287aa301a9ade52cc0..4d1c862984520eca6065fb45d6b3d8646f06e960 100644 GIT binary patch literal 8196 zcmeI1&yUhT6vyANxRh+%T}91aOqzHlE4o}ZUJ%(B4<=?YdQgMyg1gO@4xxn}2nk1x z|AYU6H~$p>7f76 zUP}ejasyUCPb4X#4xK5x=58A-0ZYIVummgtOW+?MfOj@0XTy76pS7hWUDxr>jfYP|eHjJHVtEA{t?;eDa3bVx!T8{HByTdk&ooTD( zB($7_8CjSeicq6N=PGv+4Q*{{30MN_1bFXWA)k8WnSJ|w{~l9tLw{cP{8vFQ?d;!rBBR6$qTWymf^H8kZ(j#dSEfxlin_7Vw)F|8 z?36qEcP5jg`cc)bO{?zY_+hQ;9@p#BY1z4b@BX9H&Slt-MR`}Yz-!3Pq5|(8W`0Q_YzO@((1xfbIOaIn6dzwQ@v*m|m;C7B zsL85#GwgoPAXlp>X0?0tV!{2Xx+1(9j@1BMqZL-nHLEUXM$R9P>1Gu-jbf~5jWJS) zk@VdmF>($q#XQ?bWvP!8`h+gf2hTfIJ?8Yn_oUd(FfY?7ouIWv&tW-^R-%Z&c}d|c zu5SKX5usUs^%h3F+xI_Wz$Q!JDiPSylRe=5|H|5s^AcCMCyCGdv?M6uOwH6fb+ z&|TH@Ti!)}kIaevX4)zVilrX{I9~i=h`I|`)-;TrX^R#l`yoJKu!SY?R|)(AjpZxz delta 231 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGjdEU6q~50D9QxlfW(r@iwlx+@{@r4?Gp=^ zPd1QY5oKXWVMt^sVMs)loIFXOP))qL+QL*v!N|;@R!5=Q(#SwZ!Nl0Cww9AaR9W9T zC_XzUH!r_)vWB3%WEapxxItyXMR_^-dFdcqHx`PpEoSH75M&1OfIxs7NVtOBwz2R# h^JIP*O9hZH&~+e3f@l^H4dj4)0rD8b=6Iet%mAW1E1v)W diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a3630e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +data/goerli_slot_6397852.json +data/goerli_slot_6397952.json +data/goerli_slot_6399998.json \ No newline at end of file diff --git a/data/.DS_Store b/data/.DS_Store index 2304df664056a2b23cf80b77254790dc2e55f97a..92ffaf805713f4c8a2a27a05b32f2d79ceb55720 100644 GIT binary patch literal 6148 zcmeHKOHRWu5PgOURluUlB7u|(Q1KDa?m|@-ED;9)`ce55f?C+H%APxL1ULfcVg+w( z3#CcZ5>-M7%|xE(+Mbumi(}USO!Kk34O9S>Sp-YVbQ4VarDSZux2zJ4<%rNd9z>n? zAZlkuYlAAF3j8$% zfL!%FeHQvD{%T5}k$r~`UXPji;)Hy!i8--el#iJ{arWG&W`@kQmjv(ZJR8&I1>Oti znc~aIQ)Y0HJZHQgvsp0D4BzBD?RSyPleZZ&?%87H6^H6o0aZX1_*OvHhk!*e^cXv| zO9!1j0uW1Vw#K?_@)8qx3_ZpU*+Vlfl;}c@KVldc&i25M3q8gTT{w(Cd>DUc<4-8Y z-ktn`9S##ZRIduC0^B)qu~2NHo}wr-0|Nsi1A_nqLkdF?Ln1>t5a(q2I$or7G^pMmL|123e}cI2098R z#%8s(oE)Oc`qn}5**Up+`JF(w0Rba0oWOt=O2eowAOr4eBjSRpEVw8yCqFM8sFiWE mAcq*s#D>T_Yz^DQ8zcWwf7jfhO*#NYaWpjkc8fE|kjc6AD diff --git a/merkle_util_test.go b/merkle_util_test.go index 894d6fc..5f7e2f9 100644 --- a/merkle_util_test.go +++ b/merkle_util_test.go @@ -624,6 +624,9 @@ func TestGetValidatorProof(t *testing.T) { validators := b.Validators beaconStateTopLevelRoots, err := ComputeBeaconStateTopLevelRoots(&b) + if err != nil { + fmt.Println("error") + } validatorProof, _ := epp.ProveValidatorAgainstBeaconState(&b, beaconStateTopLevelRoots, uint64(validatorIndex)) @@ -637,7 +640,7 @@ func TestGetValidatorProof(t *testing.T) { // calling the proof verification func beaconRoot, _ := b.HashTreeRoot() - validatorIndex = validatorIndex<<(validatorListMerkleSubtreeNumLayers+1) | uint64(validatorIndex) + validatorIndex = validatorListIndex<<(validatorListMerkleSubtreeNumLayers+1) | uint64(validatorIndex) flag := ValidateProof(beaconRoot, validatorProof, leaf, validatorIndex) if flag != true {