Commit Graph

44 Commits

Author SHA1 Message Date
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
Miguel Mota 448cf47ae6 Add Typescript types. Closes #13 and #12 2019-03-29 19:53:32 -07:00
Miguel Mota 730dc4b47d npm audit 2019-01-19 15:47:05 -08:00
Miguel Mota a781f3b314 get layers as object 2018-12-09 19:57:31 -08:00
Miguel Mota 069cc98640 add getting started example 2018-12-09 19:10:43 -08:00
Miguel Mota 02f9f9b80f clean up 2018-10-29 13:58:49 -07:00
Miguel Mota db3e8dc0ce crypto-js SHA3 test 2018-10-29 13:56:23 -07:00
Miguel Mota 28f0383a1d bufferify leaves 2018-10-26 12:42:14 -07:00
Miguel Mota a8bb50b50b fix infinite loop bug if no leaves 2018-10-25 22:04:51 -07:00
Miguel Mota 922f78fa27 bufferify hash algo (for crypto-js) - closes #5 2018-08-02 17:46:06 -07:00
Miguel Mota cc28ce9083 init 2017-07-22 00:31:30 -07:00