mikedilger on Nostr: The k256 api is confusing in that it does a SHA256 and a Schnorr sig together, ...
The k256 api is confusing in that it does a SHA256 and a Schnorr sig together, without telling you the SHA256 hash. I was putting in the SHA256 hash and it was hashing it again.
Published at
2022-11-13 21:26:29Event JSON
{
"id": "e42f29afa076ce374fd7129c4223dd3c4ae6dea26816e28b0b2523f81d235e54",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1668374789,
"kind": 1,
"tags": [
[
"p",
"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700",
"wss://nostr.onsats.org"
],
[
"p",
"04918dfc36c93e7db6cc0d60f37e1522f1c36b64d3f4b424c532d7c595febbc5",
"wss://nostr-pub.wellorder.net"
],
[
"e",
"654c934fb675c3cd33c292ddf868e149f55dfe813c0ea2ff5b9f3738abd06bc2",
"wss://nostr-pub.wellorder.net",
"root"
],
[
"e",
"818f80ada957d9857f3ce03c118311e176d212384e5ed1203b4b5776d0e8a9db",
"wss://nostr.onsats.org",
"reply"
]
],
"content": "The k256 api is confusing in that it does a SHA256 and a Schnorr sig together, without telling you the SHA256 hash. I was putting in the SHA256 hash and it was hashing it again.\n",
"sig": "a7249c546087cf7da87b2640685a6a200d97f5b654052a4801cfaef6669ab1b9c402fd5b9c302829201440246d77d0fb103a89ec0856d2ce9c929b37c28643dd"
}