Jaco Greeff
ae1a37cdf7
Verify with MultiSignature ( #703 )
...
* Verify with MultiSignature
* Bump dev
2020-10-07 13:24:24 +02:00
Jaco Greeff
dd1220ac97
s/mnemonicToBip39/mnemonicToLegacySeed/ ( #699 )
...
* s/mnemonicToBip39/mnemonicToLegacySeed/
* Update CHANGELOG.md
2020-10-01 08:03:18 +02:00
Jaco Greeff
30198d1a6d
Don't decode on unlocked
2020-09-25 17:06:04 +02:00
Jaco Greeff
bd1735cafb
Keypair recoding should decode, then encode ( #693 )
...
* Keypair recoding should decode, then encode
* Add tests, align createFromJson naming
2020-09-25 13:11:34 +02:00
Jaco Greeff
aff78c2e30
Adjust KeyringInstance
2020-09-24 15:23:14 +02:00
Jaco Greeff
4111122cba
JSON pair creation without addition ( #691 )
...
* JSON pair creation without addition
* Linting
* create test
2020-09-24 08:23:41 +02:00
Jaco Greeff
56a79924a0
SPDX ( #687 )
2020-09-17 16:13:39 +02:00
Jaco Greeff
cf6fae8e1d
ed25519 from dev mnemonic test ( #680 )
2020-09-08 16:39:01 +02:00
Jaco Greeff
3b383b97ca
Add addressRaw to keyring interface ( #667 )
...
* addressRaw to keyring interface
* Typos
* nobody
* Slice -20 for Ethereum
* addressRaw tests
2020-08-22 13:32:14 +02:00
Jaco Greeff
8554d47030
Ethereum keypair signing & verification ( #664 )
...
* Ethereum keypair signing & verification
* Verify against hashes expanded
* Adjust via flags
* ss58 encoding for 33-byte publicKey
* ecdsa types stores address as raw publicKey
* Adjust for hash lengths
* Adjust expand/compress specs
2020-08-17 19:52:44 +02:00
Jaco Greeff
7228100835
3.2 ( #663 )
2020-08-17 12:17:44 +02:00
Jaco Greeff
27ae11860d
Add Ethereum-compatible seed from mnemonic ( #662 )
...
* Add Ethereum-compatible seed from mnemonic
* Change encode signature to allow publicKeys
* Make CC happier
2020-08-17 11:28:59 +02:00
Jaco Greeff
d352782927
Ethereum keypair support ( #661 )
...
* Ethereum keypair support
* keypair support from seed
* Signature verification
* Cleanups
* Cleanup encode (no extra toLower)
* u8aToU8a
* Simulate random failure with range
* Cleanup BN conversions
2020-08-14 12:41:56 +02:00
Jaco Greeff
0a6bd41444
Keyring JSON with kdf ( #637 )
...
* Keyring JSON with pbkdf2
* pbkdf2 from wasm
* Encode/decode defaults adjusted
* v2 decoding test
* Recode refreshes defaults
* Use scrypt for kdf
* test conversions
* Fix params
* Cleanup decoding pass
* Swap encoding to base64
* Update for base64 encoding
* 3.0.0
2020-07-21 08:17:46 +02:00
Jaco Greeff
95d7160ad0
Test for 0 prefix ( #620 )
...
* Test for 0 prefix
* Add test for keyring encodeAddress (& fix)
* Test other branch of ?: check
2020-06-19 17:35:48 +02:00
Jaco Greeff
7d529b6c93
Type adjustments for meta
2020-05-24 19:04:15 +02:00
Jaco Greeff
18a202c460
Bump dev w/ eslint ( #603 )
...
* Bump dev w/ eslint
* Mop-up remaining lint issues
* Update stringShorten expectation
2020-05-23 14:23:13 +02:00
Alexander Krupenkin
34380caf1f
Added ECDSA keypair support ( #589 )
...
* Added ECDSA signature verification
* Add ECDSA keypair, sign, key derivation, fromSeed and tests
* keyring: added ECDSA keypair
* Fix lint errors
2020-04-30 00:33:10 +02:00
Jaco Greeff
c4acca6c7c
eslint update
2020-04-07 21:48:07 +02:00
Jaco Greeff
adb1c1fea4
Rewrite yarn.lock ( #580 )
2020-04-02 08:42:32 +02:00
Jaco Greeff
cbec4add88
Bump dev (incl. lint fixes) ( #579 )
...
* Bump dev (incl. lint fixes)
* Fix failures
2020-04-01 21:20:50 +02:00
h4x3rotab
c98e994777
Throws an error when signing with a locked keypair ( #578 )
...
* Throws an error when signing with a locked keypair
Fixes #576
* Fix lint errors
* Switch to `assert` and fix nits
2020-04-01 20:44:40 +02:00
Jaco Greeff
4ed096024e
typeof __dirname !== 'undefined' before using ( #564 )
...
* typeof __dirname !== 'undefined' before using
* Use as patch
* yarn.lock
* Rewrite yarn.lock
* Shorten __dirname check
2020-03-11 07:18:52 +01:00
Jaco Greeff
0f726ce777
Small formatting cleanups ( #554 )
...
* Small formatting cleanups
* Cleanup typos
2020-02-28 12:27:27 +01:00
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