Comments (6)
Thank you. A quick intro:
src/lib
has all the ibc code.
src/binary
is all the cli tooling. you will just need to look in that directory. Particularly places like: https://github.com/confio/ts-relayer/blob/main/src/binary/ibc-setup/commands/keys-generate.ts
You can see how we load it currently:
You may want to first refactor all instances of this logic into one helper, then later extend it to load mnemonics other ways. It should work with ibc-setup
and ibc-relayer
commands
from ts-relayer.
Ah, I like the idea of using os-level keyring for the backend.
Something that can be unlocked once on startup is fine.
from ts-relayer.
I agree.
The goal here was ease of use first (for testing environments) and add more security later.
I would be very happy for more secure key management apis that don't have negative impact on workflow
from ts-relayer.
Cool. Will try to get this done as well. Thanks, might take a bit to understand the codebase.
from ts-relayer.
Note, we cannot use a ledger (which is interactive), but I believe there may be other hardware signers that don't need confirmation.
The --interactive
prompt means, it is only entered in stdin, so it cannot be read from a file, the env or the command line args, and should be reasonable secure... just pushing the burden of security to whomever enters the text.
I guess an encrypted mnemonic with only a passphrase entered in stdin would be better. What is your design?
from ts-relayer.
Ledger support will be an issue, but I dont think most of the node operators use ledger since most of the nodes are remote anyways.
The way i am looking at this
- Keychain: additional add-keys commands to use keychain via a mnemonic (via env variables as well as stdin). Since this is a one time thing, and later on the ibc-setup should read directly from keychain itself. We dont store the mnemonics anywhere, just the private keys in the keychain.
ibc-setup keys add <name> --recover --keyring-backend <os|test|memory> # app.yaml also mentions the keyname and backend to read from (per chain)
- Encrypted salt method, would require more brainstroming to make it useable from a node operator perspective, basically no interactive methods would be possible in that case.
We keep the current method of passing the mnemonic directly too, required for testing, but not recommed it for running on standalone nodes.
Also it would make sense to have seperate keys for seperate chains, node operators can use the same mnemonics as well, with differenent index.
from ts-relayer.
Related Issues (20)
- Socket hang up HOT 3
- Use osmosis, Gaia, wasmd in CI
- error while setting the IBC , HOT 1
- Error curl: (6) Could not resolve host: faucet.oysternet.cosmwasm.com
- Document using ts-relayer for integration tests HOT 2
- Discord faucet link expired HOT 1
- error: registry.yaml validation failed. HOT 2
- Want local-juno config HOT 3
- Release build of 0.6.0 outdated HOT 1
- feature: Ability to output in `json` from `ibc-setup` HOT 3
- Use newer / more common test framework HOT 2
- Sending multiple packets from one tansaction (or msg?) not supported HOT 8
- Remove log parsing (parsePacketsFromLogs 🚮)
- Limit number of packets per transaction HOT 1
- error: Query failed with (6) HOT 1
- Restore Browser Compatibility HOT 2
- Don't relay packets from other clients/connections HOT 3
- Error using `timeoutPackets()` in v0.12.0
- Hello, Team HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-relayer.