mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-16 23:28:11 +01:00
prepare: Set Particl version to 27.2.2.0
Fixes zmq missing curve functions. Fix signmessage for v23.
This commit is contained in:
@@ -191,12 +191,22 @@ class PARTInterface(BTCInterface):
|
||||
raise RuntimeError("No non-segwit outputs found.")
|
||||
|
||||
def signMessage(self, address: str, message: str) -> str:
|
||||
message_magic: str = self.chainparams()["message_magic"]
|
||||
return self.rpc_wallet("signmessage", [address, message, message_magic])
|
||||
args = [address, message]
|
||||
if self.getDaemonVersion() > 23020700:
|
||||
message_magic: str = self.chainparams()["message_magic"]
|
||||
args += [
|
||||
message_magic,
|
||||
]
|
||||
return self.rpc_wallet("signmessage", args)
|
||||
|
||||
def signMessageWithKey(self, key_wif: str, message: str) -> str:
|
||||
message_magic: str = self.chainparams()["message_magic"]
|
||||
return self.rpc("signmessagewithprivkey", [key_wif, message, message_magic])
|
||||
args = [key_wif, message]
|
||||
if self.getDaemonVersion() > 23020700:
|
||||
message_magic: str = self.chainparams()["message_magic"]
|
||||
args += [
|
||||
message_magic,
|
||||
]
|
||||
return self.rpc("signmessagewithprivkey", args)
|
||||
|
||||
|
||||
class PARTInterfaceBlind(PARTInterface):
|
||||
|
||||
Reference in New Issue
Block a user