@@ -453,7 +453,7 @@ func TestProofDeserialize(t *testing.T) {
453453 }
454454 _ = deserialized
455455
456- pe , _ , _ , err := root .GetProofItems (keylist {absentkey [:]}, nil )
456+ pe , _ , _ , err := root .GetProofItems (Keylist {absentkey [:]}, nil )
457457 if err != nil {
458458 t .Fatal (err )
459459 }
@@ -735,7 +735,7 @@ func TestStatelessDeserialize(t *testing.T) {
735735 string (fourtyKeyTest ): fourtyKeyTest ,
736736 string (ffx32KeyTest ): fourtyKeyTest ,
737737 }
738- proveKeys := keylist {zeroKeyTest , fourtyKeyTest }
738+ proveKeys := Keylist {zeroKeyTest , fourtyKeyTest }
739739
740740 testSerializeDeserializeProof (t , insertKVs , proveKeys )
741741}
@@ -748,7 +748,7 @@ func TestStatelessDeserializeMissingLeafNode(t *testing.T) {
748748 string (oneKeyTest ): fourtyKeyTest ,
749749 string (ffx32KeyTest ): fourtyKeyTest ,
750750 }
751- proveKeys := keylist {zeroKeyTest , fourtyKeyTest }
751+ proveKeys := Keylist {zeroKeyTest , fourtyKeyTest }
752752
753753 testSerializeDeserializeProof (t , insertKVs , proveKeys )
754754}
@@ -760,7 +760,7 @@ func TestStatelessDeserializeAbsentValueInExistingLeafNode(t *testing.T) {
760760 string (zeroKeyTest ): fourtyKeyTest ,
761761 string (ffx32KeyTest ): fourtyKeyTest ,
762762 }
763- proveKeys := keylist {zeroKeyTest , oneKeyTest }
763+ proveKeys := Keylist {zeroKeyTest , oneKeyTest }
764764
765765 testSerializeDeserializeProof (t , insertKVs , proveKeys )
766766}
@@ -774,7 +774,7 @@ func TestStatelessDeserializeDepth2(t *testing.T) {
774774 string (key1 ): fourtyKeyTest ,
775775 string (ffx32KeyTest ): fourtyKeyTest ,
776776 }
777- proveKeys := keylist {zeroKeyTest , key1 }
777+ proveKeys := Keylist {zeroKeyTest , key1 }
778778
779779 testSerializeDeserializeProof (t , insertKVs , proveKeys )
780780}
@@ -791,7 +791,7 @@ func TestProofVerificationThreeStemsInSameExtensionStatus(t *testing.T) {
791791 string (key3_0 ): fourtyKeyTest ,
792792 string (key3_1 ): fourtyKeyTest ,
793793 }
794- proveKeys := keylist {zeroKeyTest , key2_0 , key3_0 , key3_1 , key4_0 }
794+ proveKeys := Keylist {zeroKeyTest , key2_0 , key3_0 , key3_1 , key4_0 }
795795
796796 testSerializeDeserializeProof (t , insertKVs , proveKeys )
797797}
@@ -805,7 +805,7 @@ func TestProofVerificationTwoLeavesWithDifferentValues(t *testing.T) {
805805 string (zeroKeyTest ): fourtyKeyTest ,
806806 string (key2 ): forkOneKeyTest ,
807807 }
808- proveKeys := keylist {zeroKeyTest , key2 }
808+ proveKeys := Keylist {zeroKeyTest , key2 }
809809
810810 testSerializeDeserializeProof (t , insertKVs , proveKeys )
811811}
@@ -818,7 +818,7 @@ func TestProofOfAbsenceBorderCase(t *testing.T) {
818818 insertKVs := map [string ][]byte {
819819 string (oneKeyTest ): fourtyKeyTest ,
820820 }
821- proveKeys := keylist {oneKeyTest , key1 }
821+ proveKeys := Keylist {oneKeyTest , key1 }
822822
823823 testSerializeDeserializeProof (t , insertKVs , proveKeys )
824824}
@@ -831,12 +831,12 @@ func TestProofOfAbsenceBorderCaseReversed(t *testing.T) {
831831 insertKVs := map [string ][]byte {
832832 string (key1 ): fourtyKeyTest ,
833833 }
834- proveKeys := keylist {oneKeyTest , key1 }
834+ proveKeys := Keylist {oneKeyTest , key1 }
835835
836836 testSerializeDeserializeProof (t , insertKVs , proveKeys )
837837}
838838
839- func testSerializeDeserializeProof (t * testing.T , insertKVs map [string ][]byte , proveKeys keylist ) {
839+ func testSerializeDeserializeProof (t * testing.T , insertKVs map [string ][]byte , proveKeys Keylist ) {
840840 t .Helper ()
841841
842842 root := New ()
@@ -1088,7 +1088,7 @@ func TestGenerateProofWithOnlyAbsentKeys(t *testing.T) {
10881088
10891089 // Create a proof with a key with the same first byte, but different second byte (i.e: absent).
10901090 absentKey , _ := hex .DecodeString ("4010000000000000000000000000000000000000000000000000000000000000" )
1091- proof , cis , zis , yis , err := MakeVerkleMultiProof (root , nil , keylist {absentKey }, nil )
1091+ proof , cis , zis , yis , err := MakeVerkleMultiProof (root , nil , Keylist {absentKey }, nil )
10921092 if err != nil {
10931093 t .Fatal (err )
10941094 }
@@ -1113,7 +1113,7 @@ func TestGenerateProofWithOnlyAbsentKeys(t *testing.T) {
11131113 }
11141114
11151115 // From the rebuilt tree, validate the proof.
1116- pe , _ , _ , err := GetCommitmentsForMultiproof (droot , keylist {absentKey }, nil )
1116+ pe , _ , _ , err := GetCommitmentsForMultiproof (droot , Keylist {absentKey }, nil )
11171117 if err != nil {
11181118 t .Fatal (err )
11191119 }
@@ -1168,7 +1168,7 @@ func TestDoubleProofOfAbsence(t *testing.T) {
11681168 // in that leaf node. i.e: two proof of absence in the same leaf node with no proof of presence.
11691169 key2 , _ := hex .DecodeString ("0000000000000000000000000000000000000000000000000000000000000100" )
11701170 key3 , _ := hex .DecodeString ("0000000000000000000000000000000000000000000000000000000000000200" )
1171- proof , _ , _ , _ , _ := MakeVerkleMultiProof (root , nil , keylist {key2 , key3 }, nil )
1171+ proof , _ , _ , _ , _ := MakeVerkleMultiProof (root , nil , Keylist {key2 , key3 }, nil )
11721172
11731173 serialized , statediff , err := SerializeProof (proof )
11741174 if err != nil {
@@ -1217,7 +1217,7 @@ func TestProveAbsenceInEmptyHalf(t *testing.T) {
12171217
12181218 key2 , _ := hex .DecodeString ("0000000000000000000000000000000000000000000000000000000000000100" )
12191219 key3 , _ := hex .DecodeString ("0000000000000000000000000000000000000000000000000000000000000000" )
1220- proof , _ , _ , _ , _ := MakeVerkleMultiProof (root , nil , keylist {key2 , key3 }, nil )
1220+ proof , _ , _ , _ , _ := MakeVerkleMultiProof (root , nil , Keylist {key2 , key3 }, nil )
12211221
12221222 serialized , statediff , err := SerializeProof (proof )
12231223 if err != nil {
0 commit comments