0
1
My understanding of how a transaction is secured in blockchain, especially in bitcoin, is that the output of transaction data is locked to the recipient's address (a shorter version of his public key). When the recipient decides to use the token locked to his address, he generates a digital signature using his private key and runs a CHECKSIG function on his address and the digital signature to prove that he owns the private key. I assume the CHECKSIG function will return a True and unfreeze the cryptocurrency if the digital signature matches the locked address (i.e., public key).
However, it looks like the transaction is just a number concatenating outbound address and recipient's address plus the inputs and outputs (i.e., how much money is exchanged between two addresses). This website provides a closer look at the components of transaction data.
Then how is the actual transaction data stored, encrypted and sent via blockchain?
For example, if A decides to buy some merchandise from B using cryptocurrency (merchandise can be digitalized, say, some valuable digital files), how are these files stored, encrypted and sent to B on the blockchain? Does blockchain technology handle the security issue of the actual digital merchandise?
Thanks, Andrew. (Please note that I try not to confine this to bitcoin -- I just used bitcoin to exemplify blockchain) So do most blockchain applications just transfer actual files using the general protocols on the network? How are the goods associated with the tokens used to purchase them in a transaction? What if the token is correctly recorded on the blockchain but the merchandise is hacked while being transferred? Are chain code/smart contract designed to solve this issue? – Nicholas – 2018-09-11T16:10:05.503
1@Nicholas you can use digital fingerprints/signatures to verify authenticity of digital "merchandise". You could also use them to establish ownership of a file, without actually storing the file on the blockchain, i.e. just store the fingerprint of the file, for example. Blockchains contain records of events used to establish distributed consensus, they were not designed for arbitrary file storage, but that doesn't mean it can't be done or doesn't exist. – JBaczuk – 2018-09-11T18:06:05.003