Five on Nostr: Removing the last byte of the p2pk seems to be a bug caused by the tricky ...
Removing the last byte of the p2pk seems to be a bug caused by the tricky splice(start, end) fn, start being inclusive, end being _exclusive_ . Removal of the padding is '02' is fair enough.
Published at
2024-10-04 12:22:13Event JSON
{
"id": "0c2286ec9a0d190839ead57e010cefff589011c42e88819ff2ec5fad4d57c90d",
"pubkey": "d04ecf33a303a59852fdb681ed8b412201ba85d8d2199aec73cb62681d62aa90",
"created_at": 1728044533,
"kind": 1,
"tags": [
[
"e",
"396b75a398e7d1e21fec288894594b0425be486051e712f80fee7bd959597704",
"",
"root"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
],
[
"p",
"ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"p",
"d04ecf33a303a59852fdb681ed8b412201ba85d8d2199aec73cb62681d62aa90"
]
],
"content": "Removing the last byte of the p2pk seems to be a bug caused by the tricky splice(start, end) fn, start being inclusive, end being _exclusive_ . Removal of the padding is '02' is fair enough.",
"sig": "530716b625dc97e779ed99ef6c3b60ba7ddefaacb3ea3b27bb8692b55dc2bed9ba0c4b1590f226751367f81b4c55fef86ed69d81a70f22ab0cbc74e941871cce"
}