<100 subscribers
Share Dialog
Share Dialog
Uvicorn & Gunicorn
Uvicorn and GunicornUvicorn and Gunicorn are important concepts when developing applications in Python. However, there are many concepts to be aware of in order to fully understand Uvicorn and Gunicorn. The following is a brief summary of the necessary concepts, and the details will be dealt with separately later.Necessary ConceptsStarletteStarlette is a Web application server that can run asynchronously. Starlette runs on top of Uvicorn.FastAPIFastAPI provides many features on top of Starlet...
Gas optimization in Solidity, Ethereum
I’m sorry but my English is terrible. I hope you understand that generously.Recently, I was developing a toy project named Blind Market. It’s a simple P2P trading application using smart contract. I was making a contract using Solidity, and the trade stage proceeded in the order of pending, shipping, and done. The problem was appeared in done phase. The problem was that when I tried to close the transaction by paying the price raised by the seller in msg.value, the following error occurred.Pe...
P2WPKH
P2WPKHP2WPKH란 비트코인 내에서 가장 일반적인 스크립트 형식으로 비트코인 프로토콜에 대한 지불 거래 유형이다. 주소는 1로 시작하는데, 세그윗을 지원하는 새로운 주소 3 또는 bc1로 시작하는 주소보다 훨씬 비싸다. https://mirror.xyz/0xA1d9f681B25C14C1eE7B87f1CF102E73cA3ad4d9/egjhNVklgy_LgZmcTXXAOTBa6ePBqO3Ja9ZSoDIad-8 즉, 비트코인 주소가 1로 시작하면 P2PKH 주소를 사용하고 있는 것이다. 공개키의 간단한 해시이며, 이 해시를 주소로 사용하는 것이다. 이것은 원래 비트코인 주소 형식이었으며 오늘까지도 충실히 작동한다. 레거시 주소는 세그윗과 호환되지 않지만, 여전히 문제없이 P2PKH 주소에서 세그윗 주소로 BTC를 보낼 수 있다. 그러나 레거시 주소 트랜잭션이 더 크기 때문에 P2PKH 주소에서 전송하는 평균 속도는 세그윗 주소에서 전송할 때보다 더 높은 요금이 발생할 수 있다....
Uvicorn & Gunicorn
Uvicorn and GunicornUvicorn and Gunicorn are important concepts when developing applications in Python. However, there are many concepts to be aware of in order to fully understand Uvicorn and Gunicorn. The following is a brief summary of the necessary concepts, and the details will be dealt with separately later.Necessary ConceptsStarletteStarlette is a Web application server that can run asynchronously. Starlette runs on top of Uvicorn.FastAPIFastAPI provides many features on top of Starlet...
Gas optimization in Solidity, Ethereum
I’m sorry but my English is terrible. I hope you understand that generously.Recently, I was developing a toy project named Blind Market. It’s a simple P2P trading application using smart contract. I was making a contract using Solidity, and the trade stage proceeded in the order of pending, shipping, and done. The problem was appeared in done phase. The problem was that when I tried to close the transaction by paying the price raised by the seller in msg.value, the following error occurred.Pe...
P2WPKH
P2WPKHP2WPKH란 비트코인 내에서 가장 일반적인 스크립트 형식으로 비트코인 프로토콜에 대한 지불 거래 유형이다. 주소는 1로 시작하는데, 세그윗을 지원하는 새로운 주소 3 또는 bc1로 시작하는 주소보다 훨씬 비싸다. https://mirror.xyz/0xA1d9f681B25C14C1eE7B87f1CF102E73cA3ad4d9/egjhNVklgy_LgZmcTXXAOTBa6ePBqO3Ja9ZSoDIad-8 즉, 비트코인 주소가 1로 시작하면 P2PKH 주소를 사용하고 있는 것이다. 공개키의 간단한 해시이며, 이 해시를 주소로 사용하는 것이다. 이것은 원래 비트코인 주소 형식이었으며 오늘까지도 충실히 작동한다. 레거시 주소는 세그윗과 호환되지 않지만, 여전히 문제없이 P2PKH 주소에서 세그윗 주소로 BTC를 보낼 수 있다. 그러나 레거시 주소 트랜잭션이 더 크기 때문에 P2PKH 주소에서 전송하는 평균 속도는 세그윗 주소에서 전송할 때보다 더 높은 요금이 발생할 수 있다....
트랜잭션의 생명주기는 블록체인에서 트랜잭션이 생성되고 최종적으로 블록에 포함될 때까지의 과정을 나타낸다.
이 과정은 다음과 같은 단계로 이루어진다.
사용자는 트랜잭션을 생성한다.
이 트랜잭션은 송신자, 수신자, 전송할 암호화폐의 양, 그리고 (필요한 경우) 데이터나 스마트 계약 명령어 등을 포함한다.
송신자는 이 트랜잭션에 개인키를 사용하여 서명한다.
생성된 트랜잭션은 블록체인 네트워크로 전송되며, 다른 노드들에게 전파된다.
네트워크의 각 노드는 전파받은 트랜잭션을 자신의 mempool에 추가한다.
Mempool은 아직 블록에 포함되지 않은 트랜잭션들의 집합이다.
마이너들은 mempool에서 트랜잭션을 선택하고, 이를 블록에 포함시킨다.
각 마이너는 자신의 블록을 생성하기 위해 nonce 값을 변경하며, 해당 블록의 해시 값이 블록체인의 난이도 목표를 충족하는 nonce 값을 찾는다.
마이너가 블록을 성공적으로 생성하면, 그 블록은 네트워크로 전파되며, 다른 노드들에게 검증을 받는다.
검증을 통과한 블록은 블록체인에 추가되고, 완전히 처리된다.
이렇게 블록체인 트랜잭션의 생명주기는 블록체인의 분산성, 무결성, 그리고 투명성을 보장하게 된다.
또한, 이 과정을 통해 누구도 트랜잭션을 변조하거나, 삭제할 수 없게 되어, 블록체인의 안전성을 보장하게 된다.
트랜잭션의 생명주기는 블록체인에서 트랜잭션이 생성되고 최종적으로 블록에 포함될 때까지의 과정을 나타낸다.
이 과정은 다음과 같은 단계로 이루어진다.
사용자는 트랜잭션을 생성한다.
이 트랜잭션은 송신자, 수신자, 전송할 암호화폐의 양, 그리고 (필요한 경우) 데이터나 스마트 계약 명령어 등을 포함한다.
송신자는 이 트랜잭션에 개인키를 사용하여 서명한다.
생성된 트랜잭션은 블록체인 네트워크로 전송되며, 다른 노드들에게 전파된다.
네트워크의 각 노드는 전파받은 트랜잭션을 자신의 mempool에 추가한다.
Mempool은 아직 블록에 포함되지 않은 트랜잭션들의 집합이다.
마이너들은 mempool에서 트랜잭션을 선택하고, 이를 블록에 포함시킨다.
각 마이너는 자신의 블록을 생성하기 위해 nonce 값을 변경하며, 해당 블록의 해시 값이 블록체인의 난이도 목표를 충족하는 nonce 값을 찾는다.
마이너가 블록을 성공적으로 생성하면, 그 블록은 네트워크로 전파되며, 다른 노드들에게 검증을 받는다.
검증을 통과한 블록은 블록체인에 추가되고, 완전히 처리된다.
이렇게 블록체인 트랜잭션의 생명주기는 블록체인의 분산성, 무결성, 그리고 투명성을 보장하게 된다.
또한, 이 과정을 통해 누구도 트랜잭션을 변조하거나, 삭제할 수 없게 되어, 블록체인의 안전성을 보장하게 된다.
No comments yet