mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-20 23:06:43 +01:00
update to sdk 0.36 (for testing..)
This commit is contained in:
@@ -17,7 +17,8 @@ async def generate_nip98_header(pkeys_hex, url="", kind="POST", filepath=""):
|
||||
if kind == "POST":
|
||||
payloadtag = Tag.parse(["payload", sha256sum(filepath)])
|
||||
tags.append(payloadtag)
|
||||
event = EventBuilder(Kind(27235), "", tags).to_event(keys)
|
||||
eb = EventBuilder(Kind(27235), "", tags)
|
||||
event = eb.sign_with_keys(keys)
|
||||
|
||||
encoded_nip98_event = base64.b64encode(event.as_json().encode('utf-8')).decode('utf-8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user