Jaco
be8cabbd1e
Rename {ed, sr}25519 functions ( #1237 )
...
* Rename {ed, sr}25519 functions
* Finalize renames
* Fix wasm imports
* CHANGELOG
2021-11-24 15:21:28 +02:00
Jaco
8880e8fa8c
7.7.1 ( #1152 )
...
* 7.7.1
* Extract stringify replacer
* formatting
* linting
* isUnSorted{A, B}
* Adjust
* Complexity?
* Cleanups
* Update packages/util-crypto/src/address/derive.ts
* formatBalance
* Revert formatBalance
2021-10-31 16:44:17 +02:00
Jaco
a4cefa4bfc
Adjust base library usage of for vs reduce/map ( #1151 )
...
* Adjust base library usage of `for` vs `reduce/map`
* Additional
* Adjust
2021-10-31 08:27:14 +02:00
Jaco
e7771b02a4
Bump dev ( #1132 )
...
* Bump dev
* eslint 8 fixes
* Bump
2021-10-17 12:32:45 +03:00
Jaco
9fc57a23e8
Adjust isHex with template return ( #1103 )
...
* Adjust isHex with template return
* Unneeded assignment
* CHANGELOG
* typo
* Additional HexString types
* Additional HexString inputs
* Use U8aLike as applicable
* typo
* Unneeded type
* HexString outputs
* Export types
2021-09-08 14:38:53 +02:00
Jaco
c9f127ec72
Bump deps ( #1101 )
...
* Bump deps
* linting
2021-09-05 10:55:11 +02:00
Jaco
218dba5623
Verification test for keyring 2-byte ss58 ( #966 )
2021-04-30 08:56:39 +02:00
Jaco
bbadfbebfa
assert cleanups ( #957 )
2021-04-22 13:13:41 +02:00
Jaco Greeff
958a13384d
Allow for addition of raw pairs to the keyring ( #918 )
2021-03-05 09:35:12 +01:00
Jaco Greeff
bca1e0c5c4
Extract json encryption functions ( #917 )
...
* Extract json encryption functions
* Opt
* adjust
* Adjust
* Adjust imports
* callback error
2021-03-04 22:01:20 +01:00
Antoine Estienne and Jaco Greeff
04bbf28a57
Jlm test from seed ( #909 )
...
* added gerald test address
* add test for fromSeed
* Update packages/util-crypto/src/secp256k1/keypair/fromSeed.spec.ts
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
* coorected createfromuri to accept eth priv key
* Update packages/keyring/src/keyring.ts
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
* add isPhraeHex
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2021-03-01 17:06:12 +01:00
Jaco Greeff
6c664498dd
Share hdValidatePath (Ledger & Ethereum) ( #895 )
...
* Share hsValidatePath (Ledger & Ethereum)
* Adjust
* Cleanup hdEthereum
* Cleanups
* Renames
2021-02-25 20:32:29 +01:00
Antoine Estienne
7721ac722d
Fix eth derivation ( #894 )
...
* added gerald test address
* added test for toJson
* fix toJson
* lint
* fix ecdsa
2021-02-25 19:18:03 +01:00
Jaco Greeff
882826a7e3
ETH derive to u8a ( #890 )
...
* ETH derive to u8a
* assert
* Extract hash
* link
* hdEthereum
* Adjust tests
* cosmetics
* Remove unused parts
2021-02-25 13:34:01 +01:00
Antoine Estienne and Jaco Greeff
c46cd5030e
Implement first eth hd derivation test ( #858 )
...
* implement first eth hd test
* lint
* added gerald test address
* test now passes
* started implementing sith local secp256k1
* Pass publicKey through on verify
* Some test fixes
* renamed tweakadd
* added suggestions
* remove logs and complete test for tweakAdd
* lint
* reviewed
* solve linting problems
* relocate hd package
* Apply suggestions from code review
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
* added asset for tolegacyseed
* yarn.lock and linting
* remove isUint8 util
* fix tests and added tests
* fixed test
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2021-02-24 15:50:12 +01:00
Jaco Greeff
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +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
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
dd1220ac97
s/mnemonicToBip39/mnemonicToLegacySeed/ ( #699 )
...
* s/mnemonicToBip39/mnemonicToLegacySeed/
* Update CHANGELOG.md
2020-10-01 08:03:18 +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
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
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
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
cbec4add88
Bump dev (incl. lint fixes) ( #579 )
...
* Bump dev (incl. lint fixes)
* Fix failures
2020-04-01 21:20:50 +02: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
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
241febb707
Bump deps ( #497 )
2020-01-06 13:43:49 +01:00
Jaco Greeff
af751c6c89
Bump deps ( #488 )
2019-11-06 22:18:57 +01: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
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
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
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
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