-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding in ledger support #4290
adding in ledger support #4290
Conversation
chain/messagepool/messagepool.go
Outdated
return nil | ||
// TODO: this causes super slow startup... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Remove before merge (Tho I guess we can also fix this while here)
546f1f5
to
de59d08
Compare
chain/wallet/multi.go
Outdated
} | ||
|
||
func (m MultiWallet) WalletImport(ctx context.Context, info *types.KeyInfo) (address.Address, error) { | ||
w := firstNonNil(m.Remote, m.Ledger, m.Local) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means that you cannot import to a normal key if you have a ledger, or ledger key if you have Remote (the latter I think might be fine).
Probably the solution is to make the Ledger key be different type of key.
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
644c914
to
2b21fde
Compare
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
It would be great to write some docs on this. |
Still some work to do here, but this does work!
Basic instructions:
First build lotus-wallet (patched to use the ledger wallet code), configure your lotus daemon to use it, and run it.
Then,
put the last line of that output into a file,
ledgerkey.json
or somethingStart
lotus-wallet
:Setup config in lotus for remove wallet:
$LOTUS_PATH/config.toml
:Import the key info into the wallet:
Now the key should show up in
lotus wallet list
If you try to sign anything with the key, for example:
It will prompt you to approve the transaction on your ledger, blocking until you approve it.