Commit Graph
18 Commits
Author SHA1 Message Date
Jaco 3597a4eb4e 2022 (#1346) 2022-01-01 09:26:11 +02:00
Antoine EstienneandJaco 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
Antoine Estienne 802c241820 Add eth dev addresses (#912)
* added gerald test address

* added 5 dev addresses for eth

* added one pair

* updated seed
2021-03-02 20:45:36 +01:00
Jaco Greeff f0f0dec8ea 2021 (#824) 2021-01-03 11:20:22 +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 56a79924a0 SPDX (#687) 2020-09-17 16:13:39 +02:00
Jaco Greeff b7635d7e2b Remove alice_session testing account (#501)
* Remove alice_session testing account

* Remove session check
2020-01-14 11:14:10 +01:00
Jaco Greeff 241febb707 Bump deps (#497) 2020-01-06 13:43:49 +01: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 e5ab357a82 Add alice_session to testing keyring (#437) 2019-07-10 20:58:10 +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 f8f2349d69 Add Bob//stash to test keyring (#412) 2019-05-29 13:10:48 +02:00
Jaco Greeff 1ac6c265e5 Add Alice//stash as a dev account (#390)
* Add Alice//stash as a dev account

* Update pairs mapping for shashes
2019-03-30 18:54:01 +01:00
Jaco Greeff 8861269963 ss58 Checksum updates (#387) 2019-03-29 14:16:59 +01: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
Jaco Greeff 6049f09880 Dev keys should use sr25519 derivation (#361)
* Dev keys should use sr25510 derivation

* Rework derive

* Derive hard and soft

* Swap default to isDerived

* typo

* Pull in new schnorrkel-js dep, update tests

* Update nobody
2019-03-14 16:10:38 +01:00
Jaco Greeff f1ca4eef0e Introduce key suri (path derivation) (#358)
* Introduce key suri (path derivation)

* Errant console.log

* let -> const

* Add seed derivation from path

* Allow new-generation derivation

* Add addFromUri to keyring

* Use addFromUri in testing keyring

* Add suri tests

* Prepare for sr25519 derivation

* CHANGELOG entry

* ed25519 is aligned with substrate

* Bump version
2019-03-13 14:39:10 +01:00
Jaco Greeff 2aba82e569 Schnorrkel support (#297)
* Initial schnorrkel support

* Start conversion of actual keyring

* Wrap encoding/decoding (needs another check)

* Manage encoding version & types with passthrough

* Update to version with working sign

* Cleanup pair interface (with seed)

* Fix failing tests

* Align naclSign signature

* Update tests for nacl (with TS conversion)

* Bump version with CHANGELOG

* Remove unneeded dep

* Use KeyringOptions instead of PairType

* Do isNumber check on addressPrefix
2019-02-13 16:46:33 +01:00