Lecture 4 -Looking deep into smartcontrats and other associated issues Flashcards

1
Q

Name some of the things that Smart contracts enable

A
  • Support data update and/or complex code rules.
  • Responsible for processing transaction requests
  • Determines transaction validity by executing business logic.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain how you understand smart contracts

A

I see smart contracts as being APIs and defining the assets/data that the APIs interact with. (Database ORM and API in one)

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

There are two types of smart contracts. What are they, and how do they differ?

A
  • Installed smart contracts: install business logic on validators before network is launched.
  • On-chain smart contracts: deploy business logic as a transaction committed to blockchain and then called by subsequent transactions.
    • Code that defines business logic becomes part of ledger.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the difference between chaincode and smart contracts?

A

Chaincode aims for permissioned smart contracts.
• Ethereum‘s smart contract offers a set of rules to build public smart contracts (builds for ICOs and public digital payment systems).
• Hyperledger and Ethereum are different in terms of privacy, decentralization, coding languages, involvement of cryptocurrency, and consensus mode used.
• Ethereum an edge over Hyperledger for applications requiring a payment instrument.

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

What is meant by “Atomic transactions”?

A
  • A transaction cannot be partly completed (ensures transaction integrity).
  • Dependencies between multiple transactions can be specified.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Because smart contracts are programs, they are subject to the following issues:

A

Syntax errors, Logic errors, malicious attack, coding errors, and poor design.

Furthermore:
Denial-of-Service (DoS) attack: resource become unavailable due to overloading.

If poorly designed, they can use excessive resources

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

What is meant by endorsement policy?

A

Endorsement Policies:
• Describes endorsement policies before network start operations.
• Identifies which organizations must approve as valid transactions generated by smart contract.
• Each smart contract is deployed with an endorsement policy.
• A transaction can only be considered valid if it has been endorsed according to its policy

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

Smart contracts in HLF is written in

A

Go, Javascript, or others

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

Smart contracts in Ethereum are (typically) written in

A

Solidity

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

What are NFTs

A

Unique and indivisible blockchain-based tokens introduced in late 2017.
• Every NFT is unique, and it cannot be divided or merged
• NFT improves tokenization of individual assets which is not feasible with fungible
tokens, as they cannot digitally represent uniqueness.
• NFTs were created to represent ownership over digital or physical assets.
• ERC-721 standard specifies that every NFT has a globally unique id, is transferable, and can optionally include metadata.
• Erc-20: a class of identical tokens (FT)

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