

Original source: Adaverse Asia
To fully understand how Cardano works, you need to understand a few concepts - the Cardano mechanism is very similar to Bitcoin, just extended with some additional functions:
UTXOs
smart contract
smart contract
In short, Cardano has taken the Bitcoin UTXO model and extended it with only two features that really matter,first level title
UTXOs
Perhaps the most important concept to understand Cardano is the UTXO model — the UTXO model was originally used in Bitcoin, but there are many restrictions in the development of smart contracts. Ethereum abandoned this model in order to implement smart contracts, and instead adopted the account model (supporting smart Most of the public chains of the contract are like this).
Cardano inherits the advantages of Bitcoin at the consensus layer. In terms of state selection, it considers the implementation requirements of smart contracts, draws on the design ideas of Ethereum, and adopts an improved modified version of UTXO (EUTXO) to realize the smart contract. Contract support.
Sign this transaction with your private key;documentThere is a series of video tutorials that explain many concepts at a high level, including how each transaction is implemented and how UTXOs work.
The first two videos on UTXO and transactions are very important concepts to understand, which allow us to understand how assets are stored in Cardano, and the information stored in each transaction.
After understanding the high-level concepts of UTXO and transactions, the best practice is to actually construct and submit a transaction, which is divided into 3 steps:
construct a transaction;
Sign this transaction with your private key;
The first method to build, sign and submit a transaction is to use "Cardano-cli", which is very friendly and almost guarantees the success of the transaction, but it requires the user to set up a Cardano node themselves.
Cardano-cli
The first method to build, sign and submit a transaction is to use "Cardano-cli", which is very friendly and almost guarantees the success of the transaction, but it requires the user to set up a Cardano node themselves.
Github repository
However the Cardano docs also have a section on how to run the node and CLIguide。
If you've already set up a node, here's an example of a very simple transaction you can tryguide。
Cardano-serialization-lib + a light wallet
The second way to construct and submit a transaction is to use Cardano-serialization-lib with a light wallet.
Although users can use any light wallet they want, I created a project as an example to demonstrate how to use Cardano-serialization-lib and Yoroi wallet to build, sign and submit transactions to the testnet.
Mainly demonstrate how to generate an NFT and send it to the script address:
install firstYoroi Nightly(Development version of Yoroi wallet, support testnet).
then fromFaucetGet some testnet ADA on
Then you can copy thisGithub repositoryOnce you understand how basic transactions work, it's worth taking a closer look at how tokens and NFTs work on Cardano.http://localhost:8080/)
Tokens and NFTs
Once you understand how basic transactions work, it's worth taking a closer look at how tokens and NFTs work on Cardano.
, in fact, tokens and NFTs are called "native assets" in Cardano because Cardano supports custom tokens and NFTs on the blockchain layer, while Ethereum uses smart contracts to represent these assets.article, in fact, tokens and NFTs are called "native assets" in Cardano because Cardano supports custom tokens and NFTs on the blockchain layer, while Ethereum uses smart contracts to represent these assets.
Tokens and NFTs are treated the same way on Cardano as ADA,The metadata of the token is where other important information about the token is located, currently
There are two important concepts to understand about tokens and NFTs:
Mint strategy
Metadata (Metadatcea)
A token's ID is really just a hash of its Mint Policy, which is a set of instructions indicating whether it can be Mint.
The metadata of the token is where other important information about the token is located, currentlyCIP25first level title
, using serialization-lib +
useCLI, using serialization-lib +first level title,
Plutus scripts (smart contracts)
To really fully understand Cardano, the final piece of the puzzle is understanding its smart contract system.
But there is no easy way to learn this part, it takes a lot of time investment, and there is no better way to learn it than by following the series of videos released by IOG -- "Plutus Pioneer Program」。
This video series will take us through how to make Plutus Scripts, test and deploy them, and give us many good examples of how we can build scripts on Cardano.
text
Original link

