Jaco Greeff
ca1362c595
Cleanup Buffer.from usages, expand tests ( #869 )
...
* Cleanup Bffer.from usages, expand tests
* validate mnemonic tests & cleanups
2021-02-04 08:50:07 +01:00
Jaco Greeff
1062ace58d
BN_{MILLION, BILLION} ( #866 )
...
* BN_{MILLION, BILLION}
* Add BN(2-9)
* adjust
* inline
* BN_TWO
* BN_ZERO
* BN_ONE gets used in return
2021-02-02 15:20:31 +01:00
Jaco Greeff
c2f453481c
Additional hdLedger tests ( #863 )
2021-02-01 14:39:14 +01:00
Jaco Greeff
c52a7b1e64
5.5 ( #862 )
...
* 5.5
* Remove extra arg from mnemonicToLegacySeed
2021-01-31 08:51:43 +01:00
Jaco Greeff
24b1790c99
Add hmac{Sha256, 512} ( #861 )
...
* Add hmac{Sha256, 512}
* Adjust
* private hmac
2021-01-30 20:02:21 +01:00
Jaco Greeff
bc84220108
Add Ledger-compatible derivation ( #860 )
...
* Add Ledger-compatible derivation
* Export hd from root
* Renames
2021-01-30 18:33:15 +01:00
Jaco Greeff
f12aa92383
Add schnorrkelVrf{Sign, Verify} functions ( #845 )
...
* Add schnorrkelVrf{Sign, Verify} functions
* Apply suggestions from code review
2021-01-20 12:54:59 +01:00
Jaco Greeff
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +01:00
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