deroproject / derohe

DERO Homomorphic Encryption Blockchain Protocol
Other
207 stars 82 forks source link

Offline Signing Support #72

Open amano-kenji opened 2 years ago

amano-kenji commented 2 years ago

Monero CLI wallet supports offline signing which I have used for a long time.

I don't have a large stack of any cryptocurrency that doesn't have a wallet that supports offline signing.

Offline signing will help every dero user, too.

Nelbert442 commented 2 years ago

You can already do this with filesign/fileverify from the CLI wallet.

filesign - https://github.com/deroproject/derohe/blob/main/cmd/dero-wallet-cli/prompt.go#L139 fileverify - https://github.com/deroproject/derohe/blob/main/cmd/dero-wallet-cli/prompt.go#L161

no daemon connection required, just opening the wallet .

amano-kenji commented 2 years ago

Can you show me example commands for offline signing?

Nelbert442 commented 2 years ago

filesign - https://github.com/deroproject/derohe/blob/main/cmd/dero-wallet-cli/prompt.go#L139 fileverify - https://github.com/deroproject/derohe/blob/main/cmd/dero-wallet-cli/prompt.go#L161

In your CLI wallet type filesign to sign a file or fileverify to verify a signature. It will prompt you for a file name (same directory as your wallet binary).

amano-kenji commented 2 years ago

So, I can already create a wallet with a private view key, create a transaction file, sign it, and verify it, and broadcast it?

mullroy commented 10 months ago

Good day, Please check out my development branch that splits the role of the wallet into an offline(signing) and online(view) role. The code is pending merge. If you want to use this, please setup new wallets completely separate from your Dero stash and use small amounts of Dero for verification. Do not use this for production yet. See: https://github.com/mullroy/derohe The top level file: README_offline_transaction_signing.md describes how to setup & use the wallets