Re:Show HN: I store my critical secrets and document, and co...
by vorpalhex on Wednesday December 21, 2022 @01:45PM
(#34084636)
This is a smart use of crypto too. The verifiable and public parts of crypto here are a benefit and not a con.
[ Parent
| on HN ]
Re:Show HN: I store my critical secrets and document, and co...
by isitthough42 on Wednesday December 21, 2022 @02:15PM
(#34085056)
If someone tells you:
This secret image contains a Bitcoin wallet recovery key
If you can crack the secret, the funds are yours!
You can check the status of the wallet here:
https://www.blockchain.com/explorer/addresses/btc/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
Now here's the secret: 0002146273a3774b3828effff3382000someGarbageSecretThatsActuallyIs{https://youtu.be/eBGIQ7ZuuiU}EnctyptedUsingARandom4096BitStringAsPassword
Which "verifiable and public" part helped?- Anyone can point to a random link on blockchain.com
- the encrypted secret can contain anything
Re:Show HN: I store my critical secrets and document, and co...
by jimmydorry on Wednesday December 21, 2022 @02:54PM
(#34085567)
They didn't do it here, but you can sign a message that includes a checksum of the application with the private key of that address. The signed message can be proved using just the public key that they have linked to.
Re:Show HN: I store my critical secrets and document, and co...
by ivalm on Wednesday December 21, 2022 @01:53PM
(#34084753)
but you are not guaranteed that the decrypted key is valid.
Re:Show HN: I store my critical secrets and document, and co...
by ninkendo on Wednesday December 21, 2022 @02:11PM
(#34084985)
I hate that I’m saying this because I believe all of cryptocurrency to be a pyramid scheme, but… this is the perfect use case for a smart contract on ethereum…
(Now I gotta go wash my hands after typing this.)
Re:Show HN: I store my critical secrets and document, and co...
by ivalm on Wednesday December 21, 2022 @03:35PM
(#34086053)
why would a smart contract help though? there needs to be proof that the encrypted key is valid, this would require zero knowledge proof but I'm not sure how you can do it for this use case.
Re:Show HN: I store my critical secrets and document, and co...
by ninkendo on Wednesday December 21, 2022 @07:01PM
(#34088028)
He could post a secret in the decrypted text on the page that, once submitted to the chain, fulfills the contract and transfers the ETH. I know very little about smart contracts but I thought this is what they’re good at… “if a value is posted with a sha512 hash that matches x, the contract is fulfilled”, and put the value on the page, encrypted, and ask hackers to decrypt it.
It doesn’t necessarily prove that the encrypted key is valid, but it proves that the author put some money up on the chain at least. It could always be that the decrypted text doesn’t provide the key that fulfills the contract, but ultimately that isn’t a solvable problem. You can’t prove a claim about some encrypted text without someone having the ability to decrypt it.
Re:Show HN: I store my critical secrets and document, and co...
by ivalm on Wednesday December 21, 2022 @11:09PM
(#34089691)
But then you don’t need to have a smart contract, simply posting public key of the wallet is enough (to verify the content of the wallet). The contract at most provides an escrow, but even that isn’t really the case since presumably the originator has the key to pull the money (since he knows the secret key).
Proving that an encrypted text has the private key is possible for some encryption schemes through zero knowledge proofs, but I guess not in this case in particular.