Smart Contracts Flashcards

1
Q

Encryption

A

Encryption ensures the privacy and security of data in smart contracts by converting information into a coded format that can only be decoded with a key.

Example - A smart contract for a financial transaction might encrypt the payment details, ensuring only the involved parties can read or modify the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Blockchain

A

Blockchain is a decentralised, distributed ledger technology that records smart contract transactions in a secure and immutable way.

Example - A smart contract for transferring ownership of an asset is recorded on the blockchain, ensuring transparency and preventing tampering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Hexadecimal Hash

A

A hexadecimal hash is a unique, fixed-length string derived from data, used to verify integrity and ensure security in smart contracts.

Example - A smart contract uses a hexadecimal hash to confirm the integrity of transaction data, ensuring it hasn’t been altered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Solidity

A

Solidity is a high-level programming language used to write smart contracts on the Ethereum blockchain.

Example - A smart contract for voting is written in Solidity to ensure transparent and tamper-proof election results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If/When… Then

A

“If/When… Then” statements in smart contracts define conditions that trigger specific actions when certain criteria are met.

Example - A smart contract might execute a payment (Then) when the condition “If the delivery is confirmed” is met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Testing

A

Testing ensures that smart contracts function correctly and securely before deployment, often using frameworks like Truffle or Hardhat.

Example - A smart contract for token transfers is tested to ensure it correctly handles transactions and prevents unauthorized access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Gas

A

Gas is the fee required to execute operations on the Ethereum blockchain, paid to miners for validating smart contract transactions.

Example - Executing a smart contract to transfer tokens requires gas, which is paid in Ether, based on the complexity of the transaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Address Book

A

An address book in smart contracts stores a list of Ethereum addresses, allowing interactions like sending tokens or calling functions.

Example - A smart contract may maintain an address book to track users and their balances for a decentralised application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Registry

A

A registry in smart contracts is a decentralised list that stores data (e.g., addresses, identifiers) in a secure and immutable way.

Example - A domain name system (DNS) smart contract could use a registry to store mappings of domain names to Ethereum addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Artifacts.required()

A

artifacts.required() is a method in the Truffle framework that loads the compiled contract artifact (bytecode and ABI) to interact with a deployed smart contract.

Example - In a Truffle test, artifacts.required(‘MyContract’) loads the contract artifact for interaction in tests or migrations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

eWallets

A

eWallets (electronic wallets) are digital tools that store cryptocurrencies and enable transactions with smart contracts.

Example - MetaMask is an eWallet that allows users to store Ether and interact with Ethereum-based smart contracts directly from a web browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly