From 76dd5a429b2efc7242072816384d516b6173d189 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 29 Jan 2025 17:21:44 +1100 Subject: [PATCH] feat: Add verifyMessage to account module --- account.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/account.py b/account.py index ce1e5be..359c561 100644 --- a/account.py +++ b/account.py @@ -846,6 +846,15 @@ def verifyMessageWithName(domain,signature,message): return False +def verifyMessage(address,signature,message): + try: + response = hsd.rpc_verifyMessage(address,signature,message) + if 'result' in response: + return response['result'] + return False + except Exception as e: + return False + #endregion def generateReport(account,format="{name},{expiry},{value},{maxBid}"):