I want to know whether a cryptocoin is made of some piece of code or it is kind of a bill that says a person has transferred conceptual coin to another person when a transaction is published. If it is a piece of code, how it is made.
thank you.
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI want to know whether a cryptocoin is made of some piece of code or it is kind of a bill that says a person has transferred conceptual coin to another person when a transaction is published. If it is a piece of code, how it is made.
thank you.
A cryptocoin is a piece of information, like a text in some language.
What a cryptocoin says depends on conventions set by the cryptocurrency system, much like what a given text says depends on the language.
A cryptocoin is made by some piece of computer code, which has output it. It usually is not made of some piece of computer code, in the sense that a computer, interpreter, Turing machine.. could run it directly. It is fed as input to some computer code (e.g for validity verification, spending..).
How a cryptocoin is made, and what makes it valid, also depends on the cryptocurrency system. In decentralized ones, the making typically involves doing a large amount of arbitrary cryptographic computations.
Speaking of bitcoin (I suspect other cryptocurrencies are similar but I have not looked at them in detail).
Coins per-se don't really exist as independent items, they are just a "unit of account" used to measure balances.
Each regular transaction takes one or more input balances and produces one or more output balances. Outputs from previous transactions form inputs to later transactions. Cryptographic signatures are used to control who can spend each output.
The blockchain acts as a central ledger to record the sequence of accepted transactions and hence the balances that are currently available for spending. This is needed to prevent people from spending the same balance twice. It also acts (through special "coinbase transactions") as a mechanism for initial distribution of coins.