mleku on Nostr: btw this is part of how a Message Authentication Code (MAC) works, simple ones are a ...
btw this is part of how a Message Authentication Code (MAC) works, simple ones are a more simple form of one way function than an elliptic curve signature but a signature is also a MAC, as you has the message and that lets you validate the signature if you have the public key that did the signature (HMACs use this same thing but instead use a hash function, it's cheaper)
Published at
2024-07-04 23:25:24Event JSON
{
"id": "73a27c14c514d9a7a7a3b2cc75f588301f30933891fe9585481d888fd474407c",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1720128324,
"kind": 1,
"tags": [
[
"e",
"4759586f86feb3c7a4d5b84999f07e56fe01700c6073f90bc06fbcd31bd8e821",
"wss://nproxy.kristapsk.lv/",
"root"
],
[
"e",
"b47d1b8d78cd856361ed7f5e060a0d3248212f918935bfdd315ac6cfb7bbc751",
"wss://relay.nostr.band/",
"reply"
],
[
"p",
"f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2",
"",
"mention"
]
],
"content": "btw this is part of how a Message Authentication Code (MAC) works, simple ones are a more simple form of one way function than an elliptic curve signature but a signature is also a MAC, as you has the message and that lets you validate the signature if you have the public key that did the signature (HMACs use this same thing but instead use a hash function, it's cheaper)",
"sig": "f5831f4ed3c1593bd75d33786aa2746e5769d24a18a45fb439f2adc801dde848f2debc901118cd2a19be4f5d76b89f32bebdb60bd948e6bbb10c8a49a3b5602c"
}