Commit Graph
21 Commits
Author SHA1 Message Date
Jaco Greeff 29d635d913 Allow u8aToU8a to convert buffers (#138)
* Allow u8aToU8a to convert buffers

* Cater for utf8 -> u8a strings
2018-06-15 11:53:18 +02:00
Jaco Greeff 461dde7c3c Copyright project authors (#137)
* Copyright project authors

* Add contributors
2018-06-13 22:24:48 +02:00
Jaco Greeff 9186a46bf9 Handle u8a null inputs in formatters (#134) 2018-06-11 10:16:03 +02:00
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 f8e07bada9 Add pair to/fromJson (#123) 2018-05-08 12:46:04 +02:00
Jaco Greeff a24ac88f13 Format short hex with ellipsis (#120) 2018-04-27 16:56:34 +02:00
Jaco Greeff 68e77f3abb toHexShort utility (#119) 2018-04-23 09:34:31 +02:00
Jaco Greeff 6da140a6d3 Correct u8aConcat with hex inputs (#117)
* Correct u8aConcat with hex inputs

* Add test
2018-04-17 13:45:56 +02:00
Jaco Greeff 0a7ac8a89b u8a to u8a convenience function (#116)
* Convenience u8aToU8a conversion

* u8aConcat take u8a | hex
2018-04-17 11:20:23 +02:00
Jaco Greeff 2279c9550e Update u8aConcat call signature (#105)
* Change u8aConcat calling format

* Simplify utilkeyring test harness
2018-03-08 16:21:37 +01:00
Jaco Greeff 4b65a59c2b Fix LE hex conversion for BN (#104) 2018-03-08 12:47:54 +01:00
Jaco Greeff be7d5842de Add u8a <-> BN endian (#95) 2018-02-21 10:59:58 +01:00
Jaco Greeff ff5396e2ec Use u8a.toString as u8aToString (#93)
* Use u8a.toString as u8aToString

* Fix lint
2018-02-20 14:37:28 +01:00
Jaco Greeff 532c526bc7 Add basic u8aToString (#92) 2018-02-20 14:01:02 +01:00
Jaco Greeff 5c270164ec Add u8aFixLength (#84) 2018-02-12 17:10:40 +01:00
Jaco Greeff dc0f612081 Add u8aBn (#82) 2018-02-12 13:52:40 +01: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
Jaco Greeff 8488254a0c Add u8aToHex (#73)
* Add u8aToHex

* Update doc

* Cleanup allocation

* Fix typo
2018-02-02 13:28:52 +01: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
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