json_hash 是这样的
# Serialize the event data
serialized_event = json.dumps([
0,
event["pubkey"],
event["created_at"],
event["kind"],
event["tags"],
event["content"]
], separators=(',', ':'), ensure_ascii=False
)
print("json content:", serialized_event)
# hash the json using sha-256
json_hash = hashlib.sha256(serialized_event.encode('utf-8')).digest()