brugeman on Nostr: It would probably throw if urlTag or others have .length < 2. Also it looks like it ...
It would probably throw if urlTag or others have .length < 2. Also it looks like it expects json middleware and has to stringify the body, but then if stringified version differs from original byte array then hashes won't match, so maybe it should go before json middleware and have body as bytes?
Published at
2024-11-25 18:47:14Event JSON
{
"id": "48dbef27995fbadfb793ecb9976f060b956aa4fce95e96462baa13cbca52bc93",
"pubkey": "3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd",
"created_at": 1732560434,
"kind": 1,
"tags": [
[
"e",
"99188c99976eb7be683b1511f12c6acdf2ee8c08f63ee92394aaa392a7a59293",
"",
"root"
],
[
"p",
"3878d95db7b854c3a0d3b2d6b7bf9bf28b36162be64326f5521ba71cf3b45a69"
]
],
"content": "It would probably throw if urlTag or others have .length \u003c 2. Also it looks like it expects json middleware and has to stringify the body, but then if stringified version differs from original byte array then hashes won't match, so maybe it should go before json middleware and have body as bytes?",
"sig": "6fa79913e9e17bcc0e8d7414790be6ebfeadac3c2db459048fa153fb921047e3ea27cc16c996d8ed2daa3224085662a7125afa7cf025eac6975ef5287474826a"
}