Commit Graph
25 Commits
Author SHA1 Message Date
Jaco f2d611e26d BN util export (& imports adjust) (#1009)
* BN util export (& imports adjust)

* Fix hexToBn

* Adjusts test

* Move bn export
2021-06-11 11:42:29 +02:00
Jaco afd8a9610f Don't modiy original value on encoding (#958) 2021-04-22 14:39:39 +02:00
Jaco 0fb52a929d BN manipulation via in-place shifts (as applicable) (#955)
* BN manipulation via in-place shifts (as applicable)

* Adjust tests
2021-04-22 13:42:20 +02:00
Jaco bbadfbebfa assert cleanups (#957) 2021-04-22 13:13:41 +02:00
Jaco 132ba0128d Type checking on u8aToU8a before invalid return (#954)
* Type checking on u8aToU8a before invalid return

* Remove extra assignment

* CHANGELOG

* Correct expectation
2021-04-22 10:25:22 +02:00
Jaco 3a98323e8b Minor readability improvements (#952)
* Minor readability improvements

* trigger

* Additional

* Additional
2021-04-21 10:31:28 +02:00
Jaco Greeff f0f0dec8ea 2021 (#824) 2021-01-03 11:20:22 +01:00
Jaco Greeff af71673c7b import type (#782) 2020-12-01 13:24:37 +01:00
Jaco Greeff f07d66562b Remove default exports (#755)
* Remove default exports

* Cleanup tests

* Exports in util

* Single secp256k1 instance

* Length check

* format check

* encoded lengths
2020-11-08 18:07:31 +01:00
Jaco Greeff ce964d2f12 Bump deps (#692)
* Bump deps

* Linting
2020-09-24 12:53:57 +02:00
Jaco Greeff 56a79924a0 SPDX (#687) 2020-09-17 16:13:39 +02:00
Jaco Greeff cbec4add88 Bump dev (incl. lint fixes) (#579)
* Bump dev (incl. lint fixes)

* Fix failures
2020-04-01 21:20:50 +02:00
Jaco Greeff c60459e303 Add isBigInt & bnToBn support for (#542)
* Add isBigInt & bnToBn support for

* All BN inputs allow BigInt
2020-02-21 16:54:33 +01:00
Jaco Greeff 241febb707 Bump deps (#497) 2020-01-06 13:43:49 +01:00
Jaco Greeff 80db504a3b Swap to using eslint (#435)
* WIP

* ... and more

* yet more...

* and examples (more-or-less) fixed

* Only problematic promisify left...

* Last batch

* rm config header

* Update

* Use Record

* Bumps
2019-07-14 11:12:46 +02:00
Jaco Greeff 23e3ff0ac3 Some additional small tests (#429)
* Some additional small tests

* Missing MemoryDb from previous commit
2019-07-09 11:07:55 +02:00
Jaco Greeff 89030f41b3 2019 (#287)
* 2019

* Bump deps

* Cleanup deps

* Update dev (markdown plugin)

* Bump deps (hopefully finally fixes doc gen)

* Fix inherit plugin
2019-01-04 14:50:50 +01:00
Jaco Greeff 7b9ca4ad6e Minimum number of bytes for compact encoding (#285)
* Minimum number of bytes for compact encoding

* Cleanup comment
2018-12-25 13:29:33 +01:00
Amaury Martiny 0c8547d49c Add tests from Rust (#283)
* Add tests from Rust

* Fix compact encoding
2018-12-21 15:15:59 +01:00
Jaco Greeff f011334152 Add actual real-test data, detect bitLength (#282)
* Add actual real-test data, detect bitLength

* Cleanup misplaced log

* Cleanup test, no length passed
2018-12-21 12:47:40 +01:00
Jaco Greeff 5585a16814 Fix large-value Compact encoding (#281) 2018-12-21 10:04:11 +01:00
Jaco Greeff cab0713f33 Make exports consistent (#269)
* Make exports consistent

* Cleanup trie impl
2018-12-09 13:25:14 +01:00
Jaco Greeff ccfed2a8b4 Bump @polkadot/dev, expand compact description (#263) 2018-12-03 14:29:30 +01:00
Jaco Greeff e3b45e7617 Rename types.d.ts -> types.ts (#262) 2018-11-29 11:54:25 +01:00
Jaco Greeff 477be907d8 Compact support for decoding and decoding (#256) 2018-11-21 15:41:19 +01:00