Commit Graph
3160 Commits
Author SHA1 Message Date
Jaco Greeff ece0c95691 Remove types (#90) 2018-02-16 14:53:53 +01:00
Travis CI bf3ca98c2b [CI Skip] 0.15.1 2018-02-15 09:38:10 +00: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
Travis CI 06eb66f84e [CI Skip] 0.14.11 2018-02-14 08:23:01 +00:00
Jaco Greeff 037da5a666 Show logger.debug in NODE_ENV=test (#88) 2018-02-14 09:19:14 +01:00
Travis CI 36827add3c [CI Skip] 0.14.10 2018-02-13 13:35:48 +00:00
Jaco Greeff f79d7fe68e bnToU8a supports endian (#87)
* bnToU8a supports endian

* Update with new bn.js flow
2018-02-13 14:30:10 +01:00
Travis CI 05b5d600bf [CI Skip] 0.14.9 2018-02-13 09:20:30 +00:00
Jaco Greeff e9cace8c1e Bump (patch, CI) 2018-02-13 10:12:49 +01:00
Jaco Greeff b0a605d229 Bump 2018-02-12 18:04:34 +01:00
Jaco Greeff 950fa51214 Ad bnToBn (convenience) (#85)
* Ad bnToBn (convenience)

* Fix flow
2018-02-12 17:50:57 +01:00
Travis CI 44952cdc34 [CI Skip] 0.14.7 2018-02-12 16:14:57 +00:00
Jaco Greeff 5c270164ec Add u8aFixLength (#84) 2018-02-12 17:10:40 +01:00
Travis CI a206f5c5bf [CI Skip] 0.14.6 2018-02-12 14:32:29 +00:00
Jaco Greeff c451a85797 Add bitLength to hexToU8a (#83) 2018-02-12 15:25:54 +01:00
Travis CI b0807ced3d [CI Skip] 0.14.5 2018-02-12 12:55:49 +00:00
Jaco Greeff dc0f612081 Add u8aBn (#82) 2018-02-12 13:52:40 +01:00
Travis CI b9cd837840 [CI Skip] 0.14.4 2018-02-12 11:09:25 +00: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
Travis CI cc8eece9fe [CI Skip] 0.14.3 2018-02-08 15:15:27 +00:00
Jaco Greeff 03dc89c2b6 Remove exposed Buffer in crypto (#80)
* Use js-sha3 instead of keccak

* Remove exposed toBuffer from util-crypto

* Add definiton for js-sha3

* Remove Buffer from docs

* Cleanup crypto hashing

* Cleanup interface
2018-02-08 16:12:00 +01:00
Travis CI 576599b6ed [CI Skip] 0.14.2 2018-02-08 13:53:50 +00:00
Jaco Greeff e832aebb07 Introduce @polkadot/util-rlp (#76)
* Add toU8a conversions

* Add u8a utilities

* @polkadot/rlp with encoding

* Decoding test runthrough

* Update util locations

* Convert util-triehash to use util-rlp

* Allow keccak from Uint8Array

* Pass Uint8Array to keccak input

* Update documentation

* Skip some doc generation

* Update @polkadot/dev

* Update doc typo

* Update allocations

* Retrieve tests from ethereumjs-testing

* Simplify test retrieval

* Exclude etereumjs-testing from flow
2018-02-08 14:50:54 +01:00
Travis CI a18e7f8474 [CI Skip] 0.14.1 2018-02-07 12:45:05 +00:00
Jaco Greeff 6b3be0bc30 Introduce @polkadot/util-triehash (#75)
* Expand util-crypto test coverage

* Add @polkadot/util-triehash

* Update link to util-triehash
2018-02-07 13:41:45 +01:00
Travis CI 0e6254dde1 [CI Skip] 0.13.9 2018-02-07 10:24:58 +00:00
Jaco Greeff feef48b44c Uint8Array outputs from crypto (#74)
* Uint8Array outputs from crypto

* Small typos

* Update documentation
2018-02-07 11:22:17 +01:00
Travis CI ee50cfab1e [CI Skip] 0.13.8 2018-02-02 12:32:18 +00:00
Jaco Greeff 8488254a0c Add u8aToHex (#73)
* Add u8aToHex

* Update doc

* Cleanup allocation

* Fix typo
2018-02-02 13:28:52 +01:00
Travis CI aab2a6543c [CI Skip] 0.13.7 2018-02-02 12:05:35 +00:00
Jaco Greeff a5518ce830 Align NaCl functions with Rust tests (#72)
* Align nacl functions with Rust tests

* Match tests from Rust
2018-02-02 13:02:55 +01:00
Travis CI eb4b4c74bb [CI Skip] 0.13.6 2018-01-31 13:54:42 +00:00
Jaco Greeff 3720ebc920 Add ed25519 keypair, sign & verify (#71) 2018-01-31 14:50:20 +01:00
Travis CI 061e3991a2 [CI Skip] 0.13.5 2018-01-30 13:16:21 +00:00
Jaco Greeff 9893256642 Buffer conversion for xxhash (#70)
* Buffer conversion

* Fix flow
2018-01-30 14:12:44 +01:00
Travis CI 6f5610439e [CI Skip] 0.13.4 2018-01-30 11:39:23 +00:00
Jaco Greeff 19e365e2c8 Hex <-> Uint8Array utils (#69) 2018-01-30 12:36:01 +01:00
Travis CI 1ce557fa4a [CI Skip] 0.13.3 2018-01-30 10:58:02 +00:00
Jaco Greeff 523dc1c48d Update hashing functions to ref (#68)
* Package upgrades

* Use h64 by default

* Remove AsNumber distinction

* xxhash32/64 & blake2b/2s

* Add xxhashAsHex{128,256}

* Add blake2AsHex{128,256,512}

* Update documentation

* Update docs
2018-01-30 11:55:32 +01:00
Travis CI 725a4571ed [CI Skip] 0.13.2 2018-01-29 09:22:58 +00:00
Jaco Greeff 8fbfe612f9 Use deasync loopWhile (#67) 2018-01-29 10:18:04 +01:00
Travis CI 0fc00ed6f9 [CI Skip] 0.13.1 2018-01-25 13:17:46 +00: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
Travis CI ade4c828af [CI Skip] 0.12.3 2018-01-15 20:58:18 +00:00
Jaco Greeff 0742557d19 Fix flow check (#63)
* Display available files

* Expand check tests

* yarn <script> -> yarn run <script>

* Revert run

* Remove definitions

* Test

* testing.js (root)

* Remove --verbose

* Remove all config

* Re-add build

* Only add flow-typed

* Adjust paths

* Revert debugging
2018-01-15 21:53:25 +01:00
Travis CI b80dfba1f4 [CI Skip] 0.12.2 2018-01-15 20:52:04 +00:00
Jaco Greeff ef776c294e Expand license header (#64) 2018-01-15 21:46:35 +01:00
Travis CI 21927d5306 [CI Skip] 0.12.1 2018-01-11 16:51:23 +00:00
Jaco Greeff f20035fe97 Move util function from @polkadot/client (#62) 2018-01-11 17:48:38 +01:00
Travis CI 561992bbda [CI Skip] 0.11.4 2018-01-09 19:14:59 +00:00