Jaco Greeff
7c1ca3a5c9
Use #<varname> instead of private _<varname> ( #545 )
...
* Use #<varname> insead of private _<varname>
* Update key extraction paths
2020-02-22 14:45:31 +01:00
Jaco Greeff
c539430a0b
2.4 ( #539 )
2020-02-18 09:00:08 +01:00
Jaco Greeff
76a0daeed6
Use ss58 format on keyring for the keyring only ( #538 )
...
* Use ss58 format on keyring for the keyring only
* Cleanup args
* Cleanup failures
* Remove deprecated addressPrefix
* Update CHANGELOG
2020-02-17 16:24:03 +01:00
Jaco Greeff
171015fbba
formatBalance adjustments ( #536 )
...
* formatBalance extensions
* Fly-by any removals
* isBn updates
* Remove unneeded ()'s
2020-02-17 12:16:02 +01:00
Jaco Greeff
bf5ba0f405
Add resolver for jest ( #519 )
2020-02-06 14:49:55 +01:00
Jaco Greeff
90ca8a0d78
Backwards compat. on detctPackage ( #517 )
2020-02-04 11:38:00 +01:00
Jaco Greeff
f4be1fe52e
Multiple versions with __dirname ( #515 )
...
* Multiple versions with __dirname
* Fallback for __dirname
* Update path
* Flatten versions extracted
* Expand display for versions
2020-02-03 13:21:46 +01:00
Jaco Greeff
98bdc9950a
Introduce detectPackage (with versioning) ( #508 )
...
* Introduce detectPackage (with versioning)
* Update expectation
2020-01-28 17:13:02 +01:00
Jaco Greeff
d108970d09
Small function cleanups ( #502 )
2020-01-15 12:17:38 +01:00
Jaco Greeff
b7635d7e2b
Remove alice_session testing account ( #501 )
...
* Remove alice_session testing account
* Remove session check
2020-01-14 11:14:10 +01:00
Jaco Greeff
241febb707
Bump deps ( #497 )
2020-01-06 13:43:49 +01:00
Jaco Greeff
76a9f2787c
assert does asserts conditions (TS 3.7) ( #489 )
...
* assert does asserts conditions (TS 3.7)
* Throw in condition
* Fix cleanup
2019-11-11 09:43:05 +01:00
Jaco Greeff
af751c6c89
Bump deps ( #488 )
2019-11-06 22:18:57 +01:00
Jaco Greeff
a5f59ca926
Derive operation on keypair ( #487 )
...
* Derive operation on keypair
* nobody -> derive
* Derivation tests
2019-11-06 15:22:12 +01:00
Jaco Greeff
fb2c51a49b
Extend sign(message, options?) with withType ( #483 )
2019-10-24 12:10:11 +02:00
Jaco Greeff
c13c2022ca
Proper ss58Format check (allows 0) ( #472 )
2019-09-19 11:09:17 +02:00
Jaco Greeff
16d077c87d
ss58Format option for Keyring ( #471 )
...
* ss58Format option for Keyring
* Expose setSS58Format everywhere
* Remove setAddressPrefix
* 1.4.0
2019-09-12 13:59:03 +02:00
Jaco Greeff
9a4938bfc5
Add copy-to-apps script
2019-09-01 19:56:10 +02:00
Jaco Greeff
4323343973
Update eslint config ( #464 )
...
* Update eslint config
* isEmpty test
2019-09-01 19:46:40 +02:00
Jaco Greeff
22e76c17ca
Allow addFromAddress to be encodable ( #463 )
2019-08-31 14:26:47 +02:00
Jaco Greeff
25fc033728
typescript-eslint 2 ( #462 )
...
* typescript-eslint 2
* startsWith fixes
* padStart/padEnd
2019-08-30 12:24:16 +02:00
Jaco Greeff
a8b28a2172
Bump dev ( #460 )
...
* Bump dev
* Linting cleanups (stricter rules)
2019-08-27 12:11:26 +02:00
Jaco Greeff
80db504a3b
Swap to using eslint ( #435 )
...
* WIP
* ... and more
* yet more...
* and examples (more-or-less) fixed
* Only problematic promisify left...
* Last batch
* rm config header
* Update
* Use Record
* Bumps
2019-07-14 11:12:46 +02:00
Jaco Greeff
e5ab357a82
Add alice_session to testing keyring ( #437 )
2019-07-10 20:58:10 +02:00
Axel Chalon
3c253ec2c4
Simplify @polkadot/keyring KeyringPair ( #419 )
...
* Simplify @polkadot/keyring KeyringPair
* Fix keypair.address not taking prefix changes into account
* Merge master, update CHANGELOG
* Use getter for keypair.publicKey
* Fix import
* Fix isLocked; add test
2019-06-13 07:56:24 +02:00
Jaco Greeff
6907add8ff
Move address helpers to util-crypto ( #416 )
...
* Move address helpers to util
* Move address helpers to @polkadot/util-crypto
2019-06-12 15:01:54 +02:00
Jaco Greeff
f8f2349d69
Add Bob//stash to test keyring ( #412 )
2019-05-29 13:10:48 +02:00
Jaco Greeff
d916ca15bb
Move keyring impl. to keyring, index only exports ( #408 )
...
* Move keyring impl. to keyring, index only exports
* CHANGELOG typo
2019-05-22 10:06:51 +02:00
Hyungsuk Kang
b5219592c0
Fix typo ( #397 )
2019-04-29 10:07:01 +02:00
Jaco Greeff
77a6bc6617
Fix addFromMnemonic ( #395 )
...
* Fix addFromMnemonic
* Fix errant (try-out) fn param
* Update tests
2019-04-02 20:55:38 +02:00
Jaco Greeff
1ac6c265e5
Add Alice//stash as a dev account ( #390 )
...
* Add Alice//stash as a dev account
* Update pairs mapping for shashes
2019-03-30 18:54:01 +01:00
Jaco Greeff
8861269963
ss58 Checksum updates ( #387 )
2019-03-29 14:16:59 +01:00
Jaco Greeff
5bc4ea2fb3
Add singleton package assertion (& add to keyring) ( #384 )
...
* Add signleton package assertion (& add to keyring)
* CHANGELOG
* Add test
2019-03-26 16:53:08 +01:00
Jaco Greeff
364a5d93f0
Expand bip39 usage ( #381 )
...
* Bump wasm-crypto for bip39ToSeed
* Support bip39ToSeed for ed25519 (backwards-compat)
* Update to latest wasm-crypto
2019-03-23 19:17:29 +01:00
Jaco Greeff
0feb61c457
Shortcut for creating dev accounts ( #379 )
2019-03-22 17:33:44 +01:00
Jaco Greeff
f6d05e0553
Utility function to extract from path only ( #376 )
...
* Utility function to extract from path only
* Add createFromUri
2019-03-21 10:51:02 +01:00
Jaco Greeff
a358c8b276
Fix keyring type determiniation (load) ( #375 )
2019-03-20 16:01:26 +01:00
Jaco Greeff
7b0a39a2fa
0.38-stable ( #372 )
2019-03-18 16:44:23 +01:00
Jaco Greeff
4a31466843
Shortcut dev keyring creation ( #370 )
...
* Shortcut dev key creation
* Remove unused import
2019-03-16 12:34:15 +01:00
Jaco Greeff
5dc8e87797
Hard and soft derivation aligned with substrate master ( #369 )
...
* I compiles... ship it!?
* Re-enable derivation from path tests
* Update schnorrkel-js (latest w3f version)
* Swap default keyring to sr25519
2019-03-16 11:34:31 +01:00
Jaco Greeff
5240dbccc0
Extract dev seed (no bip39 derivation) ( #365 )
2019-03-14 18:07:04 +01:00
Jaco Greeff
6049f09880
Dev keys should use sr25519 derivation ( #361 )
...
* Dev keys should use sr25510 derivation
* Rework derive
* Derive hard and soft
* Swap default to isDerived
* typo
* Pull in new schnorrkel-js dep, update tests
* Update nobody
2019-03-14 16:10:38 +01:00
Jaco Greeff
de67a88f45
Remove /index imports (swap to bare) ( #362 )
2019-03-14 08:41:00 +01:00
Jaco Greeff
f1ca4eef0e
Introduce key suri (path derivation) ( #358 )
...
* Introduce key suri (path derivation)
* Errant console.log
* let -> const
* Add seed derivation from path
* Allow new-generation derivation
* Add addFromUri to keyring
* Use addFromUri in testing keyring
* Add suri tests
* Prepare for sr25519 derivation
* CHANGELOG entry
* ed25519 is aligned with substrate
* Bump version
2019-03-13 14:39:10 +01:00
Jaco Greeff
bc5edc4b42
Swap docs to use vuepress ( #330 )
...
* Play around, vuepress docs
* Cleanup old
* Build
* Round out updates
2019-02-26 11:14:20 +01:00
Jaco Greeff
e19d377eec
Remove test polyfill, only include in tests ( #322 )
...
* Remove test polyfill, only include in tests
* Test polyfill for keyring
2019-02-19 16:02:45 +01:00
Jaco Greeff
63daf66861
Expand setMeta to actually set (with tests) ( #318 )
2019-02-16 15:32:22 +01:00
Jaco Greeff
9864646b65
Restore compact with optional meta ( #315 )
...
* Restore compact with optional meta
* Expose .pairs & .publicKeys (getters)
2019-02-16 10:17:54 +01:00
Jaco Greeff
ca376a2d10
Add keyring default to ed25519 ( #314 )
2019-02-15 17:18:09 +01:00
Jaco Greeff
8513530ad0
Async schnorrkel init ( #307 )
...
* Async schnorrkel init
* Start crypto init process on import
* Small spelling adjustment
2019-02-15 09:33:47 +01:00