5h17p05757a710n on Nostr: Here’s how to decode it in Python. You should get a still of Charlie the Unicorn ...
Here’s how to decode it in Python. You should get a still of Charlie the Unicorn and his two “friends.”
with open("hex_text.txt", "r") as file:
hex_text = file.read()
decoded_binary = bytes.fromhex(hex_text)
with open("reconstructed.jpg", "wb") as f:
f.write(decoded_binary)
Published at
2025-01-21 02:51:05Event JSON
{
"id": "e486587a3a75c67d1e012bd89d9886038b6c1974d787b1c4535b72243f4003d5",
"pubkey": "b5195fcaa39ffa513ba614cb3d17f12e84861242c2864656d6e82394693251bc",
"created_at": 1737427865,
"kind": 1,
"tags": [
[
"e",
"13b1fdfe5f955a7d360a09270629c0acfe156f9980ab48351820b0ff952d7928",
"wss://relay.primal.net",
"root"
],
[
"p",
"b5195fcaa39ffa513ba614cb3d17f12e84861242c2864656d6e82394693251bc"
]
],
"content": "Here’s how to decode it in Python. You should get a still of Charlie the Unicorn and his two “friends.”\n\nwith open(\"hex_text.txt\", \"r\") as file:\n hex_text = file.read()\ndecoded_binary = bytes.fromhex(hex_text)\n\nwith open(\"reconstructed.jpg\", \"wb\") as f:\n f.write(decoded_binary)",
"sig": "4b6e1f64f5f94ebe140fc389ebc5118d5229726641f0f2a1d2087fcb663df8440aa4fde7019ba13638f5ca0fe817f817981504c376f12e194fa0aa0430df4297"
}