Commit Graph
14 Commits
Author SHA1 Message Date
Jaco Greeff f1c7553a4f Update isHex check & toHex with shortening (#129)
* Update isHex check & toHex with shortening

* Basic cleanups
2018-05-24 15:00:59 +02:00
Jaco Greeff 985ea40b45 Remove unneeded 0 constant (#113) 2018-04-11 10:55:19 +02:00
Jaco Greeff 827012783f Avoid u8a -> string conversion costs (#106)
* Avoid u8a -> string conversion for pair keys

* Update hexToBn tests
2018-03-12 15:18:32 +01:00
Jaco Greeff 4b65a59c2b Fix LE hex conversion for BN (#104) 2018-03-08 12:47:54 +01:00
Jaco Greeff 54fb67c597 Test for valid hex in conversions (#102) 2018-02-28 09:20:44 +01:00
Jaco Greeff be7d5842de Add u8a <-> BN endian (#95) 2018-02-21 10:59:58 +01:00
Jaco Greeff 6f8c54337b Remove {from,to}Buffer methods (#89)
* Remove all {from,to}Buffer utility methods

* Fix check & test

* Updsate docs

* Bump minor
2018-02-15 10:32:05 +01:00
Jaco Greeff 950fa51214 Ad bnToBn (convenience) (#85)
* Ad bnToBn (convenience)

* Fix flow
2018-02-12 17:50:57 +01:00
Jaco Greeff 5c270164ec Add u8aFixLength (#84) 2018-02-12 17:10:40 +01:00
Jaco Greeff c451a85797 Add bitLength to hexToU8a (#83) 2018-02-12 15:25:54 +01:00
Jaco Greeff dc0f612081 Add u8aBn (#82) 2018-02-12 13:52:40 +01:00
Jaco Greeff b9f83dd422 Ad bitLength to number & BN conversions (#81)
* Typo in docs

* Add bitLength to number & WS conversions

* Update docs
2018-02-12 12:05:36 +01:00
Jaco Greeff 19e365e2c8 Hex <-> Uint8Array utils (#69) 2018-01-30 12:36:01 +01:00
Jaco Greeff b5c5734c7c Add Blake2s & XXHash utility functions (#66)
* Initial split of util & util-crypto

* Add initial XXHash version

* Blake2s wit tests & documentation

* Add sha512 (from NaCl)

* Add randomBytes (from NaCl)

* Flow fixes

* Update documentation

* Update latest @polkadot/dev
2018-01-25 14:13:43 +01:00