Jaco Greeff
ae172e2c53
Pass publicKey through on verify ( #883 )
...
* Pass publicKey through on verify
* Some test fixes
* Adjust tests
* Explicit public
* Additional failing tests
2021-02-19 10:43:19 +01:00
Jaco Greeff
11f1d8057b
5.6.3 ( #882 )
2021-02-16 12:17:13 +01:00
Jaco Greeff
8b443dfa4b
Add pair.unlock as equivalent to pair.lock ( #877 )
2021-02-09 17:35:59 +01:00
Jaco Greeff
73708b72c7
Allow double-byte ss58 ( #868 )
...
* Allow double-byte ss58
* Update keyring tests (non-68)
* Range check
* Fixup tests and encoding
* Adjust keyring test
* Adjust
* Assert format
* Additionl subkey equivalency tests
* ecdsa tests
* Remove invalid test
* UpdateAssert of reserved
* Cleanups
* cleanups
* Last test for Substrate equality
* crosscheck update
* network null
* network
2021-02-06 17:05:54 +01:00
Jaco Greeff
51a169a88a
Tests for vrf{Sign, Verify} ( #870 )
2021-02-04 11:26:19 +01:00
Jaco Greeff
01827deaf5
EDCSA derive test ( #850 )
2021-01-21 20:24:48 +01:00
Jaco Greeff
6f6db63580
Add vrf{Sign, Verify} to kering interface ( #846 )
2021-01-20 14:11:50 +01:00
Jaco Greeff
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +01:00
Jaco Greeff
31426858c6
detectPackage import revert
2020-12-18 11:18:02 +01:00
Jaco Greeff
f763a66219
Allow detectPackage with a function ( #811 )
2020-12-17 12:07:00 +01:00
Jaco Greeff
c6fd67b5d5
detectPackage with import.meta.url ( #810 )
...
* detectPackage with import.meta.url
* Bump dev
* Remove duplicate detectPackage
* Fix detectPackage import
2020-12-16 15:44:00 +01:00
Jaco Greeff
a28f8dad37
detectPackage cleanups ( #807 )
2020-12-15 15:49:00 +01:00
Jaco Greeff
4c02b25a2d
Small adjustments for esm (& default build) ( #798 )
2020-12-11 17:08:16 +01:00
Jaco Greeff
b1a40516c1
Bump dev (import sorting) ( #789 )
2020-12-07 16:13:47 +01:00
Jaco Greeff
af71673c7b
import type ( #782 )
2020-12-01 13:24:37 +01:00
Jaco Greeff
f1da9f05fb
Cleanup/simplify ETH signing ( #767 )
...
* Cleanup/simplify ETH signing
* Cleanup options
* Adjust ETH tests
* checksummed
* mutli ethereum
2020-11-15 12:45:09 +01:00
Antoine Estienne
3800ffd61a
Add eth tests and truncate address for keccak ( #763 )
...
* add eth tests and truncate address for keccak
* lint
* refactor
2020-11-10 15:34:45 +01:00
Jaco Greeff
abb1062462
Re-enable esm modules ( #762 )
2020-11-10 12:25:05 +01:00
Jaco Greeff
3b9617faf4
Extract detectPackage /cryptoWait as side effect ( #761 )
2020-11-09 22:09:53 +01:00
Jaco Greeff
f07d66562b
Remove default exports ( #755 )
...
* Remove default exports
* Cleanup tests
* Exports in util
* Single secp256k1 instance
* Length check
* format check
* encoded lengths
2020-11-08 18:07:31 +01:00
Jaco Greeff
695e19a8a7
Remove polyfills ( #739 )
...
* Remove polyfills
* CHANGELOG
* jestConfig
* Adjust jest
* Revert explicit overrides (from base)
* Fix dev
* 4.0.0
* Bump wasm-crypto
* min/max duplication
* Split tests, update dev
* startChar
* validate params
* complexity?
* secp256k1Verify options
* sign Options
* hasher extraction
2020-11-03 10:29:22 +01:00
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