Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Encrypting files with public address, for its private key to open?  (Read 230 times)

Offline davidpbrown


Would it be possible for an application to encrypt a file against a public address and send that to someone to open with their private key? Private key then acting as proof of person, to the extent required. Is there already a standalone application that can do that with Bitcoin addresses and private keys?

I wondered that one step beyond that might lend itself to PeerTracks but then I'm one of many that hates DRM, so perhaps that's not where PeerTracks will want to go.
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1337
    • View Profile
Re: Encrypting files with public address, for its private key to open?
« Reply #1 on: November 16, 2014, 04:39:10 PM »
We implemented this in Syscoin.. essentially its just a data field that is part or the block that gets serialized to disk and the blockchain. It can be anything including raw file data.. i think it would be easy to sign it with the owners pub key similar to a transaction simce to create the data entry you must do a signed transaction anyway. Once signed then only the signee has access to modify the data. Its analogous to the name field in namecoin or the game states in huntercoin.
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline davidpbrown

Re: Encrypting files with public address, for its private key to open?
« Reply #2 on: November 16, 2014, 05:21:34 PM »
I see no need for the Blockchain to be involved. Just that the standard form of public address and private keys are acknowledged. That application or library or whatever it was called could lend itself to other application's interest.
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1337
    • View Profile
Re: Encrypting files with public address, for its private key to open?
« Reply #3 on: November 16, 2014, 07:44:00 PM »
hmm not sure about the benefits of that... its not decentralized... i think it lacks potential in the long term.

You can use RPC to find out if an arbritrary address is "yours"  so you can assign your address to the file as an owner and then use the RPC to find out which belong to you... but not sure if this is a better approach.

When the solver gets called it can use you're private key to unencrypt. (the only thing that should know about your private key is your wallet and nothing else)
« Last Edit: November 16, 2014, 07:53:13 PM by jsidhu »
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline davidpbrown

Re: Encrypting files with public address, for its private key to open?
« Reply #4 on: November 16, 2014, 07:57:58 PM »
I'm not trying to suggest a DAC.. just wondering how far removed public-private key is from something more traditional like PGP.
฿://1CBxm54Ah5hiYxiUtD7JGYRXykT5Z6ZuMc

Offline jsidhu

  • Hero Member
  • *****
  • Posts: 1337
    • View Profile
Re: Encrypting files with public address, for its private key to open?
« Reply #5 on: November 16, 2014, 11:16:20 PM »
how do u "remove" pub priv key verification without compensating security of the protocol?
Hired by blockchain | Developer
delegate: dev.sidhujag

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 11957
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Encrypting files with public address, for its private key to open?
« Reply #6 on: November 17, 2014, 08:50:01 AM »
BTS uses a private key with 256 bit for the ellyptic curve crypto .. you can no either take the 256 and use that as "private key" for AES (which is a symmetric encryption in contrast to ECC) .. or you use the ellyptic curve crypto to encrypt your datafile ..
you will certainly find the term CBC (cypher block chaining) useful
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+