Smart Contracts Flashcards
Learn Stellar Smart Contracts (37 cards)
What is Soroban?
The smart contract platform on the Stellar network.
What is SDK?
It stands for software development kit, and it is the software that is used for developing smart contracts. (Stellar.org)
What is Rust?
Rust is the binary programming language used to build Soroban smart contracts on Stellar. (Stellar.org)
How do Stellar Soroban smart contracts execute?
A Soroban smart contract is a small program written in the Rust programming language that is compiled as a (Wasm) WebAssembly for deployment. (Stellar.org)
What is Wasm?
WebAssembly (Wasm) is a binary instruction format for a stack-based virtual machine.
Who is credited with proposing the idea of smart contracts first?
Nick Szabo (Stellar.org)
When did Nick Szabo first propose the idea of smart contracts?
The early 1990’s (Stellar.org)
What was Nick Szabo’s original idea of what a smart contract should be?
in the 1990’s Nick proposed the idea of smart contracts as a “set of promises, specified in digital form, including protocols within which the parties perform on these promises.”
Years later, this proposal became a reality with the help of blockchain technology. (Stellar.org)
Who is Nick Szabo?
Nick Szabo is a computer scientist, legal scholar, and cryptographer known for his research in smart contracts and digital currency. (Wikipedia)
In 1998, Szabo designed a mechanism for a decentralized digital currency he called “bit gold”. Bit gold was never implemented but has been called “a direct precursor to the Bitcoin architecture.” (Wikipedia)
What is a smart contract?
“A smart contract is a self-executing program that is run and stored on a blockchain network.
Smart contracts execute automatically when predefined terms and conditions are met without the need for intermediaries such as banks, lawyers, or voting authorities.
They can also automate complex workflows by triggering the next action when certain conditions are met.” (Stellar.org)
What are the benefits of smart contracts?
- Time and cost efficiency
- Trust and transparency
- Security
- Permissionless (Stellar.org)
How are smart contracts cost efficient and time saving?
Smart contracts are digital and automated, which streamlines processes and saves time and money. Without the need for intermediaries, there’s no paperwork, no back and forth between parties, and less chance for human error and manipulation. (Stellar.org)
How do smart contracts create trust and transparency?
Smart contracts are transparent due to their underlying blockchain technology. Once a smart contract is deployed on the blockchain, its code and associated transactions are publicly accessible and cannot be altered. Participants are able to independently verify a contract’s terms, behavior, and outcome. (Stellar.org)
How are smart more secure than traditional contracts?
Smart contracts are encrypted and leverage cryptographic security techniques, such as digital signatures and hashing, to protect data integrity and authenticate participants. Once a smart contract is deployed on a blockchain, its code and transactions are immutable. (Stellar.org)
How are smart contracts considered permissionless?
Stellar and Soroban are open-source, and anyone can write a smart contract and deploy it to the Stellar network as long as they know how to code in a supported smart contract language. (Stellar.org)
What are the steps in making a smart contract work?
- Write the contract
- Test the contract
- Deploy the contract
- Invoke the contract (Stellar.org)
What is meant by writing a smart contract?
The developer writes the smart contract using a programming language supported by the platform. Writing the contract consists of defining the contract’s terms and conditions, functions, and rules for execution. (Stellar.org)
What is meant by testing a smart contract?
Once the contract is written, the developer tests the smart contract in a local or testnet environment to ensure everything works correctly. (Stellar.org)
What is meant by deploying a smart contract?
Next, the developer deploys the smart contract to the blockchain’s mainnet by submitting a transaction with the compiled contract code. (Stellar.org)
What is meant by invoking a smart contract?
When the contract is deployed, others can interact with it by sending transactions that invoke its functions. These interactions trigger the contract’s execution, and the blockchain network validates and records the resulting state changes. (Stellar.org)
What are some examples of smart contracts in practice?
- Voting systems and DAO Governance
- Decentralized Finance (DeFi)
- NFT’s and Gaming
- Supply Chain Management (Stellar.org)
How would smart contracts benefit voting systems and DAO Governance?
Current systems are susceptible to voter manipulation and fraud. With smart contracts, votes are unchangeable and irreversible. (Stellar.org)
Why would smart contracts be helpful with Decentralized Finance (DeFi)?
Because DeFi applications provide a more trustless, immutable, and transparent alternative to traditional financial services. (Stellar.org)
How are smart contracts used within NFT’s and Gaming?
Smart contracts are used in gaming to allow the creation, ownership, and trading of in-game assets, often as non-fungible tokens (NFT’s). (Stellar.org)