Jaco
f848c87fde
Remove it.concurrent (jest advises against use) ( #1729 )
2023-02-12 12:55:02 +02:00
Jaco
3fe6be655d
Update headers for 2023 ( #1697 )
2023-01-01 10:21:43 +02:00
Jaco
c08c947abf
Convert assert to if + throw (remaining occurences) ( #1622 )
...
* Convert assert to if + throw (remaining occurences)
* Adjust for readability
* CHANGELOG
2022-08-04 10:45:10 +03:00
Jaco
225c250634
Adjust asserts ( #1548 )
...
* Adjust asserts
* Fix linting & build
2022-06-20 16:26:07 +03:00
Jaco
7a3e1c23aa
Internal bip32 mnemonicGenerate takes numWords param ( #1494 )
...
* Internal bip32 mnemonicGenerate takes numWords param
* Bump deps
* Calculate Calculate strength
* Remove duplicated assert
2022-05-20 13:00:07 +03:00
Jaco
9964b308ce
Small readability cleanups ( #1493 )
2022-05-20 11:56:01 +03:00
Jaco
9ae4b1066e
Change all occurences of .substr(...) to .substring(...) ( #1479 )
2022-05-09 12:50:13 +03:00
Jaco
3597a4eb4e
2022 ( #1346 )
2022-01-01 09:26:11 +02:00
Jaco
a938a9f998
Some bip39-en cleanups (& tests) ( #1295 )
2021-12-08 10:43:43 +02:00
Jaco
b16396b9b3
Rename internal keypair locations ( #1242 )
...
* Rename internal keypair locations
* save all :)
* Incdicate testing
* add dummy test
2021-11-25 12:17:23 +02:00
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
6688ff0a43
Use @noble/hashes ( #1188 )
...
* Use hashing functions from @noble/hashes
* Remove built-in pbkdf2
* Remove @types
* -19
* Remove @types
* Update packages/util-crypto/src/mnemonic/bip39.ts
* Align
* BigInt alignment
* hmac BigInt assert
* Legacy hmacSha
* Legacy fallbacks
* Align has
* Re-add micro-base
* remove old random inputs
* re-add @types/ed2curve
* Adjust pbkdf2
* Remove legacy (we have wasm)
* Update packages/util-crypto/src/detectPackage.ts
* Update packages/util-crypto/src/detectPackage.ts
* Ordering
* Comments
* Adjust
* Fix build
* cleanup legacySeed
2021-11-24 13:42:49 +02:00
Jaco
277c80eb96
Revery isWasmOnly helper ( #1229 )
...
* Revery isWasmOnly helper
* Adjust
2021-11-22 08:51:03 +02:00
Jaco
e8af9b5a1e
Add a helper for de-dupe of *AsHex ( #1224 )
...
* Add a helper for de-dupe of *AsHex
* Update packages/util-crypto/src/random/asU8a.ts
* lint
* isWasmOnly helper
* bit hasher
2021-11-21 20:21:20 +02:00
Jaco
2fcf59eeb0
Provide JS/Wasm interfaces for hmacShaAsU8a ( #1223 )
...
* Provide JS/Wasm interfaces for hmacShaAsU8a
* Adjust
* Re-add helpers
* Alignments
2021-11-21 08:54:54 +02:00
Jaco
2ec02e2580
Combine sha256/512 into single top-level folder ( #1218 )
...
* Combine sha256/512 into single top-level folder
* linting
* imports
2021-11-19 17:46:49 +02:00
Jaco
fb8b80afd7
Add/use sha256 export ( #1215 )
2021-11-19 14:01:19 +02:00
Jaco
a953b3a78a
Optimize bip39 list for size ( #1190 )
2021-11-15 16:32:48 +02:00
Jaco
b37d55e0ed
Some attempted CC fixes ( #1111 )
...
* Some attempted CC fixes
* hmac
* adjust derive
2021-09-17 15:32:52 +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
ab3268407c
Use describe.each for onlyJs flag ( #1029 )
...
* Use describe.each for onlyJs flag
* base validate checks
2021-06-23 12:55:29 +02:00
Jaco
e677acd1ed
Update toLegacySeed.ts ( #1024 )
2021-06-23 07:55:24 +02:00
Jaco
f383487764
Mnemonic compare test (w/ arrayRange) ( #1016 )
...
* Mnemonic compare test (w/ arrayRange)
* Update packages/util-crypto/src/mnemonic/toMiniSecretCmp.spec.ts
* Update packages/util-crypto/src/mnemonic/toMiniSecretCmp.spec.ts
* --testPathIgnorePattern toMiniSecretCmp
* patterns
* Prettify tests with .each
* with and without password
2021-06-18 16:23:50 +02:00
Jaco
bbadfbebfa
assert cleanups ( #957 )
2021-04-22 13:13:41 +02: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
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
c52a7b1e64
5.5 ( #862 )
...
* 5.5
* Remove extra arg from mnemonicToLegacySeed
2021-01-31 08:51:43 +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
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +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
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
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
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
dd1220ac97
s/mnemonicToBip39/mnemonicToLegacySeed/ ( #699 )
...
* s/mnemonicToBip39/mnemonicToLegacySeed/
* Update CHANGELOG.md
2020-10-01 08:03:18 +02:00
Jaco Greeff
56a79924a0
SPDX ( #687 )
2020-09-17 16:13:39 +02:00
Jaco Greeff
e5dd55e419
Allow for WASM-as-available mnemonicToBip39 call ( #669 )
2020-08-25 21:16:22 +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
1f3dd60a8d
{address,u8a}Eq functions ( #606 )
...
* {addres,u8a}Eq functions
* Remove mnemonicToSeed
2020-05-31 14:19:10 +02:00
Jaco Greeff
b8411bb0ea
Bump deps ( #513 )
...
* Bump deps
* Linting
2020-01-29 10:23:27 +01:00
Jaco Greeff
241febb707
Bump deps ( #497 )
2020-01-06 13:43:49 +01: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
Jaco Greeff
364a5d93f0
Expand bip39 usage ( #381 )
...
* Bump wasm-crypto for bip39ToSeed
* Support bip39ToSeed for ed25519 (backwards-compat)
* Update to latest wasm-crypto
2019-03-23 19:17:29 +01:00
Jaco Greeff
fe0bd25acc
Swap bip39 to wasm-crypto ( #373 )
...
* Swap bip39 to wasm-crypto
* Bump upstream deps
2019-03-20 11:32:05 +01:00
Jaco Greeff
de67a88f45
Remove /index imports (swap to bare) ( #362 )
2019-03-14 08:41:00 +01:00
Jaco Greeff
b75908ce3b
Use Read & Write transactions (interleave) ( #354 )
...
* Use Read & Write transactions (interleave)
* Rename toSeedEntropy -> toMiniSecret
2019-03-06 17:17:23 +01:00