Jaco
733d7c1948
Add objectClear & objectSpread ( #1157 )
...
* Add objectClear & objectSpread
* Allow null/undefined as a source
2021-11-04 08:16:55 +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
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
f6cc776e87
schnorrkelAgreement ( #1095 )
...
* schnorrkelAgreement
* Hex on sr25519 functions
* cleanups
2021-08-26 08:47:25 +02:00
Song Zhou and Jaco
7eddfc25c9
Add in ability to encrypt/decrypt msg with keyring ( #1070 )
...
* feat: able to encrypt & decrypt message in keyring - ed25519 & sr25519 types
* chore: make eslint happy
* test: add in one more test on cross-usage of ed25519 & sr25519
* make lint happy without eslint-disable
* assert away secp256k1 for encrypt/decrypt
* Update packages/keyring/src/pair/index.ts
* Update packages/keyring/src/pair/index.ts
Co-authored-by: Jaco <jacogr@gmail.com >
2021-08-02 06:18:58 +02:00
Antoine Estienne and Jaco
8031a4472e
Fix tojson pair for 20 address ( #1032 )
...
* added gerald test address
* exception for 20 address
* lint
* remove comment
* Update packages/keyring/src/pair/index.ts
Co-authored-by: Jaco <jacogr@gmail.com >
Co-authored-by: Jaco <jacogr@gmail.com >
2021-06-24 13:13:11 +02:00
Antoine Estienne and Jaco
512ae89fea
Jlm update for ethereum pair addition ( #969 )
...
* added gerald test address
* allow adding 20 address in createPair
* lint
* move logic to eth specific function
* fix typo
* Update packages/keyring/src/pair/index.ts
Co-authored-by: Jaco <jacogr@gmail.com >
* re establish right encoding
* Update packages/keyring/src/pair/index.ts
Co-authored-by: Jaco <jacogr@gmail.com >
* Update packages/keyring/src/pair/index.ts
Co-authored-by: Jaco <jacogr@gmail.com >
Co-authored-by: Jaco <jacogr@gmail.com >
2021-05-07 14:01:39 +02: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
Jaco Greeff
a8668c3c44
5.8 ( #896 )
...
* 5.8
* Update comments
2021-02-26 08:07:45 +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
a1267eb891
Revert toJSON changes ( #893 )
...
* Revert toJSON changes
* Fix tests
* Decoding test
* Add NOTE on encoding (so it stays in-tact)
2021-02-25 17:38:42 +01:00
Jaco Greeff
1803ba6a8e
Expand ETH derivation tests ( #892 )
2021-02-25 17:38:22 +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
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
8b443dfa4b
Add pair.unlock as equivalent to pair.lock ( #877 )
2021-02-09 17:35:59 +01:00
Jaco Greeff
51a169a88a
Tests for vrf{Sign, Verify} ( #870 )
2021-02-04 11:26:19 +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
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
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
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
56a79924a0
SPDX ( #687 )
2020-09-17 16:13:39 +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
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
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
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
d108970d09
Small function cleanups ( #502 )
2020-01-15 12:17:38 +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
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
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
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
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