Primrose Docs
  • Home
    • ⛓️Blockchain
      • Avalanche
        • What is AVAX?
      • Ethereum
        • Ethereum Cancun Upgrade Explained(draft)
        • go-ethereum: gas estimate
        • Blockchain Transaction Lifecycle
        • Mempool
        • Gas optimization in Solidity, Ethereum
      • Solidity DeepDive
        • Meta transaction
        • solidity: patterns
        • UUPS vs Transparent
        • Solidity Interface
        • Smart contract storage
        • ERC-2981 Contract
        • Solidity modifier
        • Solidity delete keyword
        • How To Make NFTs with On-Chain Metadata - Hardhat and JavaScript
        • How to Build "Buy Me a Coffee" DeFi dapp
        • How to Develop an NFT Smart Contract (ERC 721) with Alchemy
        • Upgradeable Contract
        • Smart Contract Verification
      • Common
        • Eigenlayer
        • MultiSig(draft)
        • Chain-Based Proof-of- Stake, BFT-Style Proof-of-Stake
        • Byzantine Fault Tolerance
        • Zero-knowledge
        • Hierarchical Deterministic Wallet
        • Maker DAO
        • Defi
        • Uniswap
        • IBC
        • Cosmos
        • Gossip Protocol
        • Tendermint
        • UTXO vs Account
        • Blockchain Layer
        • Consensus Algorithm
        • How does mining work?
        • Immutable Ledger
        • SHA256 Hash
        • Filecoin
        • IPFS - InterPlanetary File System
        • IPFS와 파일코인
        • Livepeer
        • Layer 0
      • Bitcoin
        • BIP for HD Wallet
        • P2WPKH
        • Segwit vs Native Segwit
    • 📖Languages
      • Javascript/Typescript
        • Hoisting
        • This value in Javascript
        • Execution Context
        • About Javscript
        • tsconfig.json
        • Nest js Provider
        • 'return await promise' vs 'return promise'
      • Python
        • Pythonic
        • Python: Iterable, Iterator
        • Uvicorn & Gunicorn
        • WSGI, ASGI
        • Python docstring
        • Decorator in Python
        • Namespace in Python
        • Python Method
      • Go
        • GORM+MySQL Connection Pool
        • Context in golang
        • How to sign Ethereum EIP-1559 transactions using AWS KMS
        • Mongo DB in golang(draft)
        • Golang HTTP Package
        • Panic
        • Golang new/make
        • golang container package
        • errgroup in golang
        • Generic Programming in Golang
        • Goroutine(draft)
    • 📝Database
      • MongoDB in golang
      • Nested loop join, Hash join
      • DB Query plan
      • Index
      • Optimistic Lock Pessimistic Lock
    • 💻Computer Science
      • N+1 query in go
      • Web server 를 구성할 때 Thread, Process 개수를 어떻게 정할 것인가?
      • CAP
      • Socket programming
      • DNS, IP
      • URL, URI
      • TLS과 SSL
      • Caching(draft)
      • Building Microservices: Micro Service 5 Deploy Principle
      • Red Black Tree
      • AOP
      • Distributed Lock
      • VPC
      • Docker
      • All about Session and JWT
      • Closure
      • Singleton Pattern
      • TCP 3 way handshake & 4 way handshake
      • Race Condition
      • Process Address Space 
      • Call by value, Call by reference, Call by assignment
      • Zookeeper, ETCD
      • URL Shortening
      • Raft consensus
      • Sharding, Partitioning
    • 📒ETC
      • K8S SIGTERM
      • SQS
      • Git Branch Strategy: Ship / Show / Ask
      • Kafka
      • Redis Data Types
      • CI/CD
      • How does Google design APIs?
      • Minishell (42 cursus)
      • Coroutine & Subroutine
      • Redis
Powered by GitBook
On this page
  1. Home
  2. Blockchain
  3. Ethereum

Blockchain Transaction Lifecycle

트랜잭션의 Lifecycle

트랜잭션의 생명주기는 블록체인에서 트랜잭션이 생성되고 최종적으로 블록에 포함될 때까지의 과정을 나타낸다.

이 과정은 다음과 같은 단계로 이루어진다.

트랜잭션 생성

사용자는 트랜잭션을 생성한다.

이 트랜잭션은 송신자, 수신자, 전송할 암호화폐의 양, 그리고 (필요한 경우) 데이터나 스마트 계약 명령어 등을 포함한다.

송신자는 이 트랜잭션에 개인키를 사용하여 서명한다.

트랜잭션 전파

생성된 트랜잭션은 블록체인 네트워크로 전송되며, 다른 노드들에게 전파된다.

Mempool에 추가

네트워크의 각 노드는 전파받은 트랜잭션을 자신의 mempool에 추가한다.

Mempool은 아직 블록에 포함되지 않은 트랜잭션들의 집합이다.

트랜잭션 선택 및 블록 생성

마이너들은 mempool에서 트랜잭션을 선택하고, 이를 블록에 포함시킨다.

각 마이너는 자신의 블록을 생성하기 위해 nonce 값을 변경하며, 해당 블록의 해시 값이 블록체인의 난이도 목표를 충족하는 nonce 값을 찾는다.

블록 검증 및 추가

마이너가 블록을 성공적으로 생성하면, 그 블록은 네트워크로 전파되며, 다른 노드들에게 검증을 받는다.

검증을 통과한 블록은 블록체인에 추가되고, 완전히 처리된다.

이렇게 블록체인 트랜잭션의 생명주기는 블록체인의 분산성, 무결성, 그리고 투명성을 보장하게 된다.

또한, 이 과정을 통해 누구도 트랜잭션을 변조하거나, 삭제할 수 없게 되어, 블록체인의 안전성을 보장하게 된다.

Previousgo-ethereum: gas estimateNextMempool

Last updated 1 year ago

⛓️