aleph-im / aleph-client

Lightweight Python Client library for the Aleph.im network
MIT License
12 stars 13 forks source link

Add message signature using LedgerHQ hardware wallet #13

Open hoh opened 3 years ago

hoh commented 3 years ago

The ability to use private keys stored on a hardware wallet to sign messages would greatly enhance the security of the network, especially since messages can be amended and the virtual machines will potentially have many side effects.

This link contains examples that would be relevant to implement signature using Ethereum: https://github.com/ledgerhq/app-ethereum/tree/master/examples

This link contains examples that would be relevant to implement signature using Solana: https://github.com/ledgerhq/app-solana/blob/master/examples/example-sign.js

hoh commented 2 years ago

This may require either interfacing with the Ledger device over USB, or open a local web interface to use with Metamask.

hoh commented 2 years ago

The official documentation for JavaScript: https://developers.ledger.com/docs/transport/overview/

hoh commented 2 years ago

This code may be relevant: https://github.com/3rdIteration/electrum-raven/blob/master/electrum/plugins/ledger/ledger.py

hoh commented 2 years ago

Also https://github.com/LedgerHQ/ledgerctl/tree/master/ledgerwallet

hoh commented 2 years ago

https://github.com/ledgerhq/app-ethereum/tree/master/examples