Add chainId to PublicIdentity
See original GitHub issueA cryptographic keypair should be bound to one specific chain to avoid replay attacks. Also it should be easy to convert a PublicIdentity to an address, which requires the knowledge of the chainId.
- Add
chainId
parameter toWallet.createIdentity
- Add
chainId
toPublicIdentity
- Remove redundant
chainId
parameter fromWallet.createTransactionSignature
- Convert
MultiChainSigner.keyToAddress
intoidentityToAddress(identity: PublicIdentity): Address
- Convert
TxReadCodec.keyToAddress
intoidentityToAddress(identity: PublicIdentity): Address
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How To Specify ChainID - Ethereum Stack Exchange
I am interacting with the Harmony testnet using web3j, but since Harmony has 4 shards i also have to specify the chainID, otherwise...
Read more >Getting started with the CLI - Ceramic Developers
1. Install the CLIs · 2. Start the Ceramic daemon · 3. Create a Ceramic account · 4. Create a stream · 5....
Read more >flow - Go Packages
A ChainID is a unique identifier for a specific Flow network instance. ... Identity represents the public identity of one network ...
Read more >Mix nodes | Nym Docs
Note that your node's public identity key is displayed during startup, ... nyxd keys add -i mix0-famhead # the head of the mix...
Read more >Factom CLI Commands - Factom Protocol Docs
c CHAINID] \. [-e EXTID1 -e EXTID2 -x HEXEXTID ...] [-CET] ECADDRESS <STDIN>. The addentry subcommands support the -e and -x flags for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Example interface (please modify, give feedback based on client requirements above, or question those requirements):
(Here I intentionally omit the naming of local identities, we can add that once we find a good agreement how derivations work).
(note: updated types for signing a bit)
After some discussion with Simon, I support this issue:
IdentityManager
that can be implemented in the Wallet application to provide whatever functionality we need.UserProfile
, which can then easily get a unique address from the signer, as Simon suggested above.MultiChainSigner
, so one could drop inIdentityManager
as an alternative toUserProfile
(will make PR now).