Commit Graph
14 Commits
Author SHA1 Message Date
Travis CI ac69866ab4 [CI Skip] 0.23.1 2018-06-20 14:39:41 +00:00
Travis CI 5d3185fd37 [CI Skip] 0.22.2 2018-05-25 08:31:08 +00:00
Jaco Greeff 7075495efd Update keyring usage (#128)
* Update keyring usage

* Remove "fluffy" asU8a{128,256,512} operations
2018-05-22 15:44:34 +02:00
Travis CI dc6fb357f6 [CI Skip] 0.19.6 2018-05-08 10:49:11 +00:00
Jaco Greeff 995dfecf61 Initial pair encryption (xsalsa20-poly1305) (#107)
* Allow keypair generation from input string

* Add keyfile encryption/decryption

* Pass secret through n rounds

* Split definition types

* Additional cleanups

* Pass salt as blake2b input

* Move kdf hashing to util-cypto

* Dangling comma

* Pull through secret as string | Uint8Array

* Update documentation
2018-03-13 17:04:44 +01:00
Travis CI e383745892 [CI Skip] 0.15.8 2018-02-21 11:47:39 +00:00
Travis CI 46df66c5ec [CI Skip] 0.15.6 2018-02-20 16:16:38 +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
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 feef48b44c Uint8Array outputs from crypto (#74)
* Uint8Array outputs from crypto

* Small typos

* Update documentation
2018-02-07 11:22:17 +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 3720ebc920 Add ed25519 keypair, sign & verify (#71) 2018-01-31 14:50:20 +01: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
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