feat: Add verifyMessageWithName to account
All checks were successful
Build Docker / Build Image (push) Successful in 44s
All checks were successful
Build Docker / Build Image (push) Successful in 44s
This commit is contained in:
parent
ca32bf7780
commit
83d676c372
@ -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
|
||||
|
10
account.py
10
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}"):
|
||||
|
Loading…
Reference in New Issue
Block a user