daniele [revoked] on Nostr: Cannot be null? I created the custom_addr class adapting segwit_addr and stripping ...
Published at
2022-11-24 12:34:12Event JSON
{
"id": "79fb55f1d433bef22a14b6f441e2a8e97421d9b1fa202cd59948c7b84cc6ccc8",
"pubkey": "a0dcfbb8ae35e9407b17b9c84b6f77096161f69ad60633dbf1769e5701923e3c",
"created_at": 1669293252,
"kind": 1,
"tags": [
[
"e",
"2cf5911e46a51fd6c01988bdf4cd5c96dde03de37866cd7a9d3b757597a38033"
],
[
"p",
"9ec7a778167afb1d30c4833de9322da0c08ba71a69e1911d5578d3144bb56437"
]
],
"content": "Cannot be null?\n\nhttps://github.com/dtonon/nostr-ruby-playground/blob/main/lib/custom_addr.rb\nhttps://github.com/dtonon/nostr-ruby-playground/blob/main/lib/segwit_addr.rb\n\nI created the custom_addr class adapting segwit_addr and stripping the version completely.\n\nAs I can see from https://github.com/dtonon/nostr-ruby-playground/blob/main/lib/bech32.rb the encode/decode functions do not explicitly require the version.\n\nThe conversion seem working well:\nhttps://github.com/dtonon/nostr-ruby-playground/blob/main/02-bech32-hex-conversion.rb\n\nDisclaimer: I played with the code reading the BIP-173, but without any deep knowledge of the matter.",
"sig": "393db4ffe947e1f62a2a242446fb07e304db31ba801bb6dd4ef6ac31f5e72d71226e2e1e71556516662a50c190ecf8f37d19d173bfd07687d34bce035eb8ba78"
}