Commit Graph
22 Commits
Author SHA1 Message Date
Jaco Greeff 2bf0f02236 Lock logic negation 2018-08-06 16:39:12 +02:00
Jaco Greeff 618429c9f1 Add lock() on pair, hasSecretKey -> isLocked (#187) 2018-08-06 14:38:08 +02:00
Jaco Greeff f0c34bea09 Use bn types from @types (#153)
* Use bn.js definitions from @types

* Update isHex & isObservable
2018-06-27 15:05:55 +02:00
Jaco Greeff 73477a2809 Add tslint (#151) 2018-06-27 10:15:46 +02:00
Jaco Greeff 4470dfa7b9 TypeScript conversion (#142)
* Auto-conversion

* Cleanup type conversion errors

* Inching closer, resolution sorted

* Additional cleanups

* TS, TS everywhere

* Minor version for TS release

* Last roundups
2018-06-22 21:17:50 +02:00
Jaco Greeff 99b86d9849 Use ES6 import/export (#139)
* Use ES6 import/export

* Fix tests
2018-06-20 16:36:07 +02:00
Jaco Greeff 461dde7c3c Copyright project authors (#137)
* Copyright project authors

* Add contributors
2018-06-13 22:24:48 +02:00
Jaco Greeff 96c2a1da2c 'nobody' pair for default account & signature 2018-06-02 21:33:42 +02:00
Jaco Greeff 952f25659e Added 'everybody' for system testing (#131) 2018-06-02 10:08:05 +02:00
Jaco Greeff e11a102da1 Update type definition 2018-05-23 16:16:35 +02: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
Jaco Greeff f8e07bada9 Add pair to/fromJson (#123) 2018-05-08 12:46:04 +02:00
Jaco Greeff 05f4754857 Add keyring publicKey <-> address (#122)
* Add keyring publicKey <-> address

* Add isObservable utility
2018-05-05 20:09:14 +02:00
Jaco Greeff d4f6222a29 Fix fialing tests (unhappy commit) 2018-04-27 16:52:25 +02:00
Jaco Greeff 7fd0ee4eea keyring.getPair throws 2018-04-27 16:48:23 +02:00
Jaco Greeff 24dffb710e testingPairs for inetrnal testing (#118) 2018-04-19 12:24:43 +02:00
Jaco Greeff 6ce0efea3f Use detached sign (no splitting) (#114)
* Use detached sign (no splitting)

* Add pair meta get/set

* Types
2018-04-11 15:22:36 +02:00
Jaco Greeff 35d2f69b75 Pkcs8 bytes for pairs (non-encrypted) (#111)
* Upgrade dependencies

* Pkcs8 bytes for pairs (non-encrypted)

* Bump minor

* Pass only secretKey around for encoding

* Cleanup seed interface
2018-03-20 15:42:39 +01: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
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 2279c9550e Update u8aConcat call signature (#105)
* Change u8aConcat calling format

* Simplify utilkeyring test harness
2018-03-08 16:21:37 +01:00
Jaco Greeff cdc848dce0 Add @polkadot/util-keyring (#99) 2018-02-23 11:41:59 +01:00