multi: refactor SignMessage to specify hashing

This commit is contained in:
Oliver Gugger committed 2021-10-14 15:42:44 +02:00
1 parent 00af978bf2
commit 6093393e2f
8 files changed
+27 -17

No files matched your search

+3 -3
View File
@@ -442,9 +442,9 @@ type MessageSigner interface {
// SignMessage attempts to sign a target message with the private key
// described in the key locator. If the target private key is unable to
// be found, then an error will be returned. The actual digest signed is
// the double SHA-256 of the passed message.
SignMessage(keyLoc keychain.KeyLocator, msg []byte) (*btcec.Signature,
error)
// the single or double SHA-256 of the passed message.
SignMessage(keyLoc keychain.KeyLocator, msg []byte,
doubleHash bool) (*btcec.Signature, error)
}
// WalletDriver represents a "driver" for a particular concrete