mleku on Nostr: ```go func Zero(sk *SecKey) { b := (*[96]byte)(unsafe.Pointer(sk))[:96] tmp := ...
```go
func Zero(sk *SecKey) {
b := (*[96]byte)(unsafe.Pointer(sk))[:96]
tmp := byte(1)
for i := range b {
for tmp != 0 {
b[i] = 0
tmp = b[i]
}
}
}
```
Published at
2024-11-05 16:23:40Event JSON
{
"id": "3428417f8485d26d87b1c182d4fb7607351f9cb16f62167e34ef5ea135c95883",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1730823820,
"kind": 1,
"tags": [
[
"e",
"ec686020a570bbc5a23f40c4c0672a55da7ee07cfd04f30dcf9ec36d05afd089",
"wss://theforest.nostr1.com/",
"root"
],
[
"e",
"f9d8f799cfd1e29880ea8509c09e3ca69b29ede19b61e5fbe3c45e353e6b6d9a",
"wss://nostr.land/",
"reply"
],
[
"p",
"036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "```go\nfunc Zero(sk *SecKey) {\n\tb := (*[96]byte)(unsafe.Pointer(sk))[:96]\n\ttmp := byte(1)\n\tfor i := range b {\n\t\tfor tmp != 0 {\n\t\t\tb[i] = 0\n\t\t\ttmp = b[i]\n\t\t}\n\t}\n}\n```",
"sig": "24bf49184fe67a2dba8a0037d938972b6719de5dee5b7e9a232d55c64b74b59c8c5b66545a04ac39bbfaf2f36da0e12b39c18b632ead304363145f6f757c9d92"
}