From 83d676c3726ae266dfc7eb933cf0f50bd2847ec5 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 29 Jan 2025 17:07:44 +1100 Subject: [PATCH] feat: Add verifyMessageWithName to account --- README.md | 2 +- account.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e969d57..23bd2ac 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ For Docker you can mount a volume to persist the user data (/app/user_data) - Rescan - Zap pending transactions - View xPub -- Custom plugin support +- Custom plugin support (find some [here](https://git.woodburn.au/nathanwoodburn?tab=repositories&q=plugin&sort=recentupdate)) ## Themes Set a theme in the .env file diff --git a/account.py b/account.py index 3d252ef..ce1e5be 100644 --- a/account.py +++ b/account.py @@ -836,6 +836,16 @@ def signMessage(account,domain,message): } } +def verifyMessageWithName(domain,signature,message): + try: + response = hsd.rpc_verifyMessageWithName(domain,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}"):