hcocoa on Nostr: ...
道理上是这样,但是我试了一下,起码最热门的nostream和strfry这两个relay实现都是会验证event id的:
如果sha256对不上的话,会分别返回"invalid: event id does not match" 和 "invalid: bad event id"。
这一点确实和文档不一致。
Published at
2023-03-07 06:20:48Event JSON
{
"id": "9237697634ba335190b9c52ec3549dfb491d264c7db7cd0fdc2f06f5bf1c5741",
"pubkey": "7d9bcf523acc5b4b3ca3406cb62517b1b8a160cf07a164462bc587e8424f7b78",
"created_at": 1678170048,
"kind": 1,
"tags": [
[
"e",
"dd4204019926d875f36a2015319a860d1f875fb35b15bcb5d7c06a9b5e4307ee"
],
[
"e",
"fb31b6af508b221db0dec2393bc8a30db86338e87d695aa2c3d8bbb89745803f"
],
[
"p",
"f0c864cf573de171053bef4df3b31c6593337a097fbbd9f20d78506e490c6b64"
]
],
"content": "道理上是这样,但是我试了一下,起码最热门的nostream和strfry这两个relay实现都是会验证event id的:\n\n如果sha256对不上的话,会分别返回\"invalid: event id does not match\" 和 \"invalid: bad event id\"。\n\n这一点确实和文档不一致。",
"sig": "c050c25181884cba7a078888f0e13e550b3984d25b53c5b5f779a1526afb87c74de00ae1f1b0df4c88860d5e5e7e5b3eafedf5d1fb9ae7944f3757969612d389"
}