Commit Graph

60 Commits

Author SHA1 Message Date
Miguel Mota c330fe25ff
rename concatFn to concatenator 2022-11-17 15:15:44 -08:00
Miguel Mota 5933e7f5a5
Add poseidon hash test. #71 2022-11-17 15:08:13 -08:00
Miguel Mota 670a458354
Add bigNumerify util and concatFn option. #71 2022-11-17 14:16:25 -08:00
Miguel Mota 8a8fc30473
Add test 2022-11-15 12:12:48 -08:00
Miguel Mota fdb3cc8b75
Fix unexpected breaking change 2022-11-14 10:42:51 -08:00
Miguel Mota 9b880c9165
Update README 2022-11-14 10:38:42 -08:00
Miguel Mota 5c169b13d4
Add marshal tree method 2022-11-10 22:15:00 -08:00
Miguel Mota 8433273481
Merge branch 'task/binary-search-leaf' of github.com:PreetamSing/merkletreejs into PreetamSing-task/binary-search-leaf 2022-11-10 05:32:29 -08:00
Miguel Mota 60d8d0cb58
Lint 2022-10-26 18:08:40 -07:00
Francisco Giordano 35f512bdb3 revert error from verification of multiproof flags 2022-10-26 20:18:41 -03:00
Francisco Giordano dda5c23cbc fix and unskip test 2022-10-26 20:16:34 -03:00
Francisco Giordano 67cefb0a0f fix tests 2022-10-26 20:16:34 -03:00
Francisco Giordano d695d22406 add error on bad multiproof flags 2022-10-26 20:16:34 -03:00
Francisco Giordano dfec2938fa implement complete option 2022-10-16 19:09:06 -05:00
PreetamSing 392a41d715 Add tests for binarySearch method. 2022-09-22 15:05:32 +05:30
Miguel Mota 286c3966eb
Bufferify ArrayBuffer. #45 2022-03-08 23:56:49 -08:00
Miguel Mota 1656b6b125
Fix bufferifyFn inputs. #46 2022-02-21 00:24:14 -08:00
Miguel Mota 9d716830aa
Change depth parameter to leavesCount for verifyMultiProof 2022-02-20 23:53:22 -08:00
Miguel Mota 329cf8975a
MultiProof bug fixes 2022-02-20 21:50:20 -08:00
Miguel Mota f4be5df429
Update docs 2021-12-06 15:37:12 -08:00
Miguel Mota febe67e8ea
Add method to add additional leaves 2021-12-06 15:09:45 -08:00
Miguel Mota 125c453a13
Add count methods 2021-12-02 13:48:05 -08:00
Miguel Mota c82949f500
Bump version 2021-07-25 23:56:45 -07:00
Miguel Mota 7745683a7a
Merge branch 'feat/test' of https://github.com/friedger/merkletreejs into friedger-feat/test 2021-07-25 23:53:08 -07:00
Miguel Mota 86f7b03185
Rename test file 2021-07-25 23:48:52 -07:00
Friedger Müffke 848d5793a1 add tests for all bitcoin tree leaves 2021-07-22 13:21:00 +02:00
Miguel Mota 49ee00c1c0
Add static verify method 2021-07-04 01:23:15 -07:00
Miguel Mota df879c6dac
Add example 2021-07-02 00:20:35 -07:00
Miguel Mota ffd7c4fa9a
MerkleMountainRange rollUp 2021-04-03 11:34:25 -07:00
Miguel Mota 8869e16ae2
Add clean script 2021-04-01 20:37:56 -07:00
Miguel Mota af698a92ae
Merge 2021-04-01 20:34:24 -07:00
Miguel Mota 8deaa7fc53
Add Merkle Mountain Range (MMR) tree class 2021-04-01 20:31:01 -07:00
Miguel Mota 9b06e661c5
Add fillDefaultHash function option 2021-03-31 19:18:09 -07:00
Miguel Mota a80e229053 Replace typeof number with Number.isInteger 2020-12-12 10:55:32 -08:00
paul etscheit 803455fc26 implements getProofFlag by passing leaves indices 2020-12-08 13:56:48 +01:00
Miguel Mota 072a6c2962 Bump version to 0.2.11 2020-12-07 14:34:28 -08:00
Miguel Mota a380106a5d Merge branch 'add_position_hex_proof' of https://github.com/petscheit/merkletreejs into petscheit-add_position_hex_proof 2020-12-07 14:09:58 -08:00
paul etscheit a979e9a3a6 adds pair sorting in multiProof verification 2020-12-05 16:21:40 +01:00
paul etscheit ddace05db7 adds positional hex proof 2020-12-03 16:18:41 +01:00
Miguel Mota f37f91eae9 Add marshal/unmarshal static methods 2020-10-30 02:07:08 -07:00
Miguel Mota a246764d6b Compare leaf hash to root if no proof array. Closes #25 2020-07-31 22:53:10 -07:00
Miguel Mota a69a927e8e Update docs 2020-06-06 12:12:30 -07:00
Miguel Mota e320bea597 Update README 2020-06-01 23:29:33 -07:00
Miguel Mota cea9442939 Add multiproof support 2020-06-01 22:12:14 -07:00
sethfork ffad24babf
Replace sha3 with keccak; Update ethereumjs-util 2019-06-30 02:39:53 -04:00
Miguel Mota e8964cd2b3
sort option 2019-06-16 17:46:12 -07:00
Miguel Mota 29e7b7e6f8
sha1 test 2019-06-16 17:14:53 -07:00
Miguel Mota 882236e603
sort leaves option 2019-06-07 15:15:16 -07:00
Miguel Mota 6f0ee08069
Update README 2019-06-07 00:55:35 -07:00
Miguel Mota 49ef70eccd
Add duplicateOdd and sort option 2019-06-07 00:29:42 -07:00