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
Nantian
2e4de2093c
fix bigint type ( #1079 )
2021-08-12 10:00:58 +02:00
Jaco
24548e84e1
Networks bundling adjustments ( #1056 )
...
* Add networks to util bundle
* Bundling for @polkadot/networks
* Move to util-crypto
* Comment
* Update lock
* Re-adjust detectPackage
* Only exports
* Adjust
* Adjust tests
* crosscheck adjust
2021-07-09 14:03:21 +02:00
Jaco
902ff47337
isHex(value): value is string ( #1031 )
...
* isHex stringisHex(value): value is string
* lint
2021-06-23 15:47:42 +02:00
Jaco
0ef761e899
User template string type for isHex ( #1020 )
...
* User template string type for isHex
* isHex/isString combo checks
2021-06-22 16:05:14 +02:00
Jaco
f2d611e26d
BN util export (& imports adjust) ( #1009 )
...
* BN util export (& imports adjust)
* Fix hexToBn
* Adjusts test
* Move bn export
2021-06-11 11:42:29 +02:00
Jaco
d63d92e488
Explicit deprecation logging ( #979 )
...
* Explicit deprecation logging
* Update CHANGELOG.md
2021-05-12 14:25:01 +02:00
Jaco
2516309b93
Add additional 2-byte ss58 tests (verification) ( #963 )
2021-04-30 07:26:58 +02:00
Jaco
bbadfbebfa
assert cleanups ( #957 )
2021-04-22 13:13:41 +02:00
Jaco
3a98323e8b
Minor readability improvements ( #952 )
...
* Minor readability improvements
* trigger
* Additional
* Additional
2021-04-21 10:31:28 +02:00
Jaco
cd1c0df3cd
isAddress/validateAddress functions ( #946 )
2021-04-14 21:25:58 +02:00
Jaco Greeff
35f677f2e9
Additional substrate test vectors for ss58 ( #884 )
2021-02-20 11:50:56 +01:00
Jaco Greeff
73708b72c7
Allow double-byte ss58 ( #868 )
...
* Allow double-byte ss58
* Update keyring tests (non-68)
* Range check
* Fixup tests and encoding
* Adjust keyring test
* Adjust
* Assert format
* Additionl subkey equivalency tests
* ecdsa tests
* Remove invalid test
* UpdateAssert of reserved
* Cleanups
* cleanups
* Last test for Substrate equality
* crosscheck update
* network null
* network
2021-02-06 17:05:54 +01:00
Jaco Greeff
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +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
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
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
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
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
0d03eac307
Add deriveAddress ( #653 )
2020-08-09 14:26:37 +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
dc8b4a6447
Add encode{Derived, Multi}Address ( #627 )
...
* Add encode{Derived, Multi}Address
* Tests for encode*
* CHANGELOG
2020-07-04 10:08:40 +02:00
Jaco Greeff
8d355ff6fc
Local base58 alphabet check for better errors ( #622 )
...
* Local base58 alphabet check for better errors
* Rewrite yarn.lock
* Align error return values
* Split base58{Encode, Decode}
* base58Encode input types
* Function names, some docs
2020-06-26 14:46:19 +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
Jaco Greeff
bdb14f91a8
Pre-checks on verify input lengths ( #608 )
...
* Pre-checks on verify input lengths
* Small cleanup
* Update error signatures
2020-06-01 10:27:08 +02:00
Jaco Greeff
d4491aeb7f
Small cleanups, u8aConcat optimization ( #607 )
...
* Small cleanups, u8aConcat oprimizations
* Cleanup
* Pre-allocate arrays
* Don't recreate PREFIX
2020-06-01 09:29:44 +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
18a202c460
Bump dev w/ eslint ( #603 )
...
* Bump dev w/ eslint
* Mop-up remaining lint issues
* Update stringShorten expectation
2020-05-23 14:23:13 +02:00
Wei Tang
bb04fa28f7
ss58: add Kulupu prefix to the list ( #595 )
2020-05-08 20:12:17 +02:00
Jaco Greeff
5d0abef952
Sort with ss58 prefix ( #591 )
2020-04-26 14:33:45 +02:00
Jaco Greeff
62ebe257a6
u8aSorted & sortAddresses ( #588 )
2020-04-24 19:15:43 +02:00
Jaco Greeff
60a9866abe
Create createKeyMulti & createKeySub for utility (util-crypto) ( #587 )
...
* Create keyMulti & keysub for utility
* Bumps
2020-04-24 15:34:47 +02:00
Jaco Greeff
804ed13d0a
Add signatureVerify ( #552 )
...
* Add signatureVerify
* addressOrPublicKey typo
* Flatten verify, allow extra types
* Add signatureVerify tests
* De-dup address checksum checks
2020-02-24 11:55:15 +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
dec88b6ab7
Bump deps ( #490 )
2019-11-13 10:17:40 +01:00
Jaco Greeff
a512766bfb
1.5 ( #473 )
2019-09-25 12:37:59 +02: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
25fc033728
typescript-eslint 2 ( #462 )
...
* typescript-eslint 2
* startsWith fixes
* padStart/padEnd
2019-08-30 12:24:16 +02:00
Jaco Greeff
df8c1038b9
Add address check function ( #443 )
...
* Add address check function
* Add tests for checkAddress
2019-07-17 23:19:25 +02:00
Jaco Greeff
6c794626e8
Allow Kusama network prefix ( #441 )
...
* Allow Kusama network prefix
* Allow deprecated 68
2019-07-16 20:09:03 +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