mleku on Nostr: i wasn't able to figure out how to get libsecp256k1 to work with Go either... it ...
i wasn't able to figure out how to get libsecp256k1 to work with Go either... it insisted on X/Y ECDH in the functions i was able to find, the actual "encrypt/decrypt" step uses a counter mode so the key derivation with ECDH is the bottleneck
the performance is abysmal though... 4 000 000 ns per operation
the need for native compiled distributed apps could not be more clear
Published at
2024-10-09 16:55:37Event JSON
{
"id": "f4baf1edd0bbf07a99f74075d800716a2615876c996c25e7f2aefa8b632e96ac",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1728492937,
"kind": 1,
"tags": [
[
"e",
"c3d5bb4a11343cc2e3d9023c8b2dfd95c0e0ccacdb20b6fcbf5847f02204bb30",
"wss://gleasonator.dev/relay",
"root"
],
[
"e",
"4f497235f407d3bfd254da871ffb16ca4f06b86d04d9d0ec2f312293601a9c08",
"",
"reply"
],
[
"p",
"0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "i wasn't able to figure out how to get libsecp256k1 to work with Go either... it insisted on X/Y ECDH in the functions i was able to find, the actual \"encrypt/decrypt\" step uses a counter mode so the key derivation with ECDH is the bottleneck\n\nthe performance is abysmal though... 4 000 000 ns per operation\n\nthe need for native compiled distributed apps could not be more clear",
"sig": "086ecf7172393f50a2898ae9fe9c1b423fb084a856f965934a35df8a1b962380c16979caec2e0ff70847622ded648ed674b322c56e70bcafe9eef468d073a060"
}