Explicitly set messagemagic string for Particl v27

This commit is contained in:
tecnovert
2025-08-04 21:27:16 +02:00
parent 9cc4734bda
commit 235a8f6830
3 changed files with 27 additions and 29 deletions

View File

@@ -190,6 +190,14 @@ class PARTInterface(BTCInterface):
def combine_non_segwit_prevouts(self):
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])
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])
class PARTInterfaceBlind(PARTInterface):