Jaco Greeff
814f8418f2
Fix nacl imports ( #823 )
...
* Fix nacl imports
* patch
* rewrite
2020-12-31 10:54:31 +01:00
Jaco Greeff
0d7ed7420d
Add keccak512 ( #820 )
...
* Add keccak512
* dedupe
* Adjust hex test
* ss58
* fix expectation
2020-12-25 09:52:49 +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
1061df6e4a
Adjust blakejs commonjs imports ( #809 )
2020-12-17 12:03:21 +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
408a6706b1
Adjust imports ( #791 )
2020-12-09 11:02:55 +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
82b25aecfb
Replace pbkdf2 ( #758 )
...
* Replace pbkdf2
* Optional length
* cleanups
2020-11-08 21:34:34 +01:00
Jaco Greeff
68bcce7a27
Cleanup pbkdf2 use ( #757 )
2020-11-08 20:52:02 +01:00
Jaco Greeff
055c4f82f5
Adjust nacl imports ( #756 )
2020-11-08 19:42:13 +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
1aec77922f
Adjust xxhash imports (only 64 used) ( #753 )
2020-11-08 14:52:28 +01:00
Jaco Greeff
8029a54508
Additional complexity adjustments ( #751 )
...
* Adjust encoder/decoder fallbacks
* Dep-dup is functions
* Complexity cleanups
* More complexity adjustments
2020-11-08 12:10:29 +01:00
Jaco Greeff
c67c1966d7
Adjust encoder/decoder fallbacks ( #750 )
...
* Adjust encoder/decoder fallbacks
* Dep-dup is functions
* Complexity cleanups
2020-11-08 11:20:22 +01:00
Jaco Greeff
7135941b6a
Cleanups to signature verification ( #749 )
2020-11-07 17:11:49 +01:00
Jaco Greeff
d751c03d45
Bump wasm-crypto ( #745 )
...
* Bump wasm-crypto
* Use x-randomvalues for randomAsU8a
2020-11-07 11:18:06 +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
3230663ae1
3.7 ( #738 )
...
* 3.7
* Update new rules
* RegExp
* formatBalance cleanups
* Revert
* Formatting
* fill
* format test fix
* cleanups
* Cleanups
* Expand bip39 tests
* Cleanups
* Cleanups
2020-11-01 14:44:14 +01:00
Jaco Greeff
6715bef24a
Align JS bip39 with wasm-crypto ( #730 )
...
* Align JS bip39 with wasm-crypto
* Cleanups
2020-10-26 22:57:11 +01:00
Jaco Greeff
253776a510
Cleanup elliptic imports ( #729 )
2020-10-26 21:37:51 +01:00
Jaco Greeff
65b1c81c21
Expose all claimed/available networks ( #719 )
...
* Expose all claimed/available networks
* Expansion
2020-10-16 12:09:37 +02:00
Jaco Greeff
3447cd40bf
Add @polkadot/networks ( #707 )
...
* Add @polkadot/networks
* Update .github/workflows/ss58-registry.yml
* Use prefixes from @polkadot/network
* Update packages/networks/src/checkLatest.spec.ts
* Cleanups
* Auto-check fields based on schema
* typo
* language
2020-10-14 14:52:29 +02:00
Jake Naviasky
506142da8a
Add evmToAddress and addressToEvm crypto utils. ( #705 )
2020-10-12 18:11:20 +02: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
e7c665e5da
Add isBase{32, 58, 64} utils ( #689 )
...
* Add isBase{32, 58, 64} utils
* Allow empty inputs
* Add base64{Trim, Pad}
* isBase64
* Update assert messages
* Cleaup ifsCompat checks
2020-09-20 10:05:38 +02:00
Jaco Greeff
56a79924a0
SPDX ( #687 )
2020-09-17 16:13:39 +02:00
Lovesh Harchandani
c0e4b1b93e
Add Dock network id for address generation ( #640 )
...
Taking 21 and 22 for testnet and mainnet
Signed-off-by: lovesh <lovesh.bond@gmail.com >
2020-09-09 09:47:33 +02:00
Jaco Greeff
e5dd55e419
Allow for WASM-as-available mnemonicToBip39 call ( #669 )
2020-08-25 21:16:22 +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
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
61b57687af
Ethereum address utils ( #659 )
...
* Ethereum address utils
* export in base
2020-08-11 16:46:01 +02:00
Jaco Greeff
f5acd60253
Actually expose base32* functions ( #658 )
2020-08-11 16:20:39 +02:00
Jaco Greeff
e487d0a454
- Allow for hasher to secp256k1 sign/verify functions ( #657 )
2020-08-11 08:54:52 +02:00
Jaco Greeff
0d03eac307
Add deriveAddress ( #653 )
2020-08-09 14:26:37 +02:00
Jaco Greeff
9d145e72b8
Base32 encoding/decoding ( #652 )
...
* Base32 encoding/decoding
* Attribution
* LOOKUP
* Share base32/58 alphabet validation
* Apply suggestions from code review
2020-08-09 13:27:47 +02:00
Jaco Greeff
ce6f9d8bc8
Scrypt via wasm-crypto ( #647 )
...
* Scrypt via wasm-crypto
* Bump wasm-crypto
2020-08-05 16:07:38 +02:00
Brad Larson
a0251ff650
[FIX] Adjust error message ( #646 )
...
I ran into a case where the secret value provided had trailing
whitespace, and when the code ran, it logged that secret value as part
of the stack trace.
This change will make it harder for users to accidentally leak key
material.
2020-07-31 15:48:31 +02:00
Reto Trinkler
91340577df
Adding 4 as address type of ss58 for Katal Chain ( #639 )
2020-07-22 17:41:49 +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
2288c4da8a
Base64 utils ( #632 )
2020-07-09 09:16:24 +02:00