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...
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...
P2WPKH
P2WPKHP2WPKHλ λΉνΈμ½μΈ λ΄μμ κ°μ₯ μΌλ°μ μΈ μ€ν¬λ¦½νΈ νμμΌλ‘ λΉνΈμ½μΈ νλ‘ν μ½μ λν μ§λΆ κ±°λ μ νμ΄λ€. μ£Όμλ 1λ‘ μμνλλ°, μΈκ·Έμμ μ§μνλ μλ‘μ΄ μ£Όμ 3 λλ bc1λ‘ μμνλ μ£Όμλ³΄λ€ ν¨μ¬ λΉμΈλ€. https://mirror.xyz/0xA1d9f681B25C14C1eE7B87f1CF102E73cA3ad4d9/egjhNVklgy_LgZmcTXXAOTBa6ePBqO3Ja9ZSoDIad-8 μ¦, λΉνΈμ½μΈ μ£Όμκ° 1λ‘ μμνλ©΄ P2PKH μ£Όμλ₯Ό μ¬μ©νκ³ μλ κ²μ΄λ€. 곡κ°ν€μ κ°λ¨ν ν΄μμ΄λ©°, μ΄ ν΄μλ₯Ό μ£Όμλ‘ μ¬μ©νλ κ²μ΄λ€. μ΄κ²μ μλ λΉνΈμ½μΈ μ£Όμ νμμ΄μμΌλ©° μ€λκΉμ§λ μΆ©μ€ν μλνλ€. λ κ±°μ μ£Όμλ μΈκ·Έμκ³Ό νΈνλμ§ μμ§λ§, μ¬μ ν λ¬Έμ μμ΄ P2PKH μ£Όμμμ μΈκ·Έμ μ£Όμλ‘ BTCλ₯Ό λ³΄λΌ μ μλ€. κ·Έλ¬λ λ κ±°μ μ£Όμ νΈλμμ μ΄ λ ν¬κΈ° λλ¬Έμ P2PKH μ£Όμμμ μ μ‘νλ νκ· μλλ μΈκ·Έμ μ£Όμμμ μ μ‘ν λλ³΄λ€ λ λμ μκΈμ΄ λ°μν μ μλ€....
Smart Contract Developer, Web3 Backend Developer
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...
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...
P2WPKH
P2WPKHP2WPKHλ λΉνΈμ½μΈ λ΄μμ κ°μ₯ μΌλ°μ μΈ μ€ν¬λ¦½νΈ νμμΌλ‘ λΉνΈμ½μΈ νλ‘ν μ½μ λν μ§λΆ κ±°λ μ νμ΄λ€. μ£Όμλ 1λ‘ μμνλλ°, μΈκ·Έμμ μ§μνλ μλ‘μ΄ μ£Όμ 3 λλ bc1λ‘ μμνλ μ£Όμλ³΄λ€ ν¨μ¬ λΉμΈλ€. https://mirror.xyz/0xA1d9f681B25C14C1eE7B87f1CF102E73cA3ad4d9/egjhNVklgy_LgZmcTXXAOTBa6ePBqO3Ja9ZSoDIad-8 μ¦, λΉνΈμ½μΈ μ£Όμκ° 1λ‘ μμνλ©΄ P2PKH μ£Όμλ₯Ό μ¬μ©νκ³ μλ κ²μ΄λ€. 곡κ°ν€μ κ°λ¨ν ν΄μμ΄λ©°, μ΄ ν΄μλ₯Ό μ£Όμλ‘ μ¬μ©νλ κ²μ΄λ€. μ΄κ²μ μλ λΉνΈμ½μΈ μ£Όμ νμμ΄μμΌλ©° μ€λκΉμ§λ μΆ©μ€ν μλνλ€. λ κ±°μ μ£Όμλ μΈκ·Έμκ³Ό νΈνλμ§ μμ§λ§, μ¬μ ν λ¬Έμ μμ΄ P2PKH μ£Όμμμ μΈκ·Έμ μ£Όμλ‘ BTCλ₯Ό λ³΄λΌ μ μλ€. κ·Έλ¬λ λ κ±°μ μ£Όμ νΈλμμ μ΄ λ ν¬κΈ° λλ¬Έμ P2PKH μ£Όμμμ μ μ‘νλ νκ· μλλ μΈκ·Έμ μ£Όμμμ μ μ‘ν λλ³΄λ€ λ λμ μκΈμ΄ λ°μν μ μλ€....
Smart Contract Developer, Web3 Backend Developer

Subscribe to Primrose

Subscribe to Primrose
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
λΌλ μ± μ λμ€λ 5κ°μ λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬ μμΉμ λν΄μ μ΄ν΄λ³΄μ.
λΆν/λ°°ν¬μ μμ΄ λ§μ΄ν¬λ‘μλΉμ€κ°μ μν₯μ μ£Όμ΄μλ μλλ€.
λ€μκ³Ό κ°μ μν©μ 보μ.
Example : ν νΈμ€νΈμμ μ¬λ¬ λ§μ΄ν¬λ‘ μλΉμ€ μΈμ€ν΄μ€ μ€ν.
ν λ§μ΄ν¬λ‘μλΉμ€μ λΆνκ° κΈκ²©ν μ¦κ° β λ€λ₯Έ λ§μ΄ν¬λ‘μλΉμ€ μ±λ₯ μ ν
ν λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬λ₯Ό μν μ€μ λ³κ²½ β λ€λ₯Έ λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬ μν₯
λ§μ΄ν¬λ‘μλΉμ€λ μλ‘ κ²©λ¦¬λ νκ²½μμ μ€νλμ΄μΌ νλ€. κ·Έλ μ§ λͺ»νλ©΄ μμ κ°μ μν©μ΄ λ°μν μ μλ€.
물리μ μΌλ‘ 격리λ₯Ό νλκ° νΉμ κ°μν, 컨ν μ΄λ λ±μΌλ‘ 격리λ₯Ό νλλ‘ νλ€.
물리μ 격리 : κ°ν 격리
λ Όλ¦¬μ 격리 : λΉ λ₯Έ μ 곡
λ§μ΄ν¬λ‘μλΉμ€κ° μ¦κ°ν μλ‘ λ 볡μ‘ν΄μ§λ€.
λ λ§μ μ μ°¨, λ λ§μ μ€μ , λ λ§μ λͺ¨λν°λ§ λμ
μ΄μ λΆν μ¦κ°
μ΄μ λΆν κ°μ μν΄ μλνμ μ΄μ μ λ§μΆ°μΌνλ€.
μλννμ§ μμΌλ©΄ μ±μ₯μ λΉ λ₯΄κ² λμν μ μμ
κ°λ°μκ° μ§μ μΈνλΌ μλΉμ€λ₯Ό μ 곡ν μ μλλ‘ νλ€ β μμ°μ± μ¦κ°λ‘ μ΄μ΄μ§λ€.
μΈνλΌ κ΅¬μ‘°λ₯Ό μ½λλ‘ μ μνλΌ.
μλνλ₯Ό ꡬννλ ν κ°μ§ λ°©λ²μ€ νλμ΄λ€.
ν μ€νΈ νμμΌλ‘ μνλ μΈνλΌ κ΅¬μ‘° μ μ
μΈνλΌ κ΅¬μ‘°μ λν λ²μ κ΄λ¦¬κ° κ°λ₯ν΄μ§λ€.
Terraform, Pulumi κ°μ νΉνλ λκ΅¬κ° μλ€.
λ§μ΄ν¬λ‘μλΉμ€ κ°λ°/λ°°ν¬μ μμ΄ λ¬΄μ€λ¨ λ°°ν¬λ νμμ΄λ€.
μλΉμ€ μ¬μ©μμ ν΅μ§νμ§ μκ³ μΆμνλ κ²μ΄ λͺ©νμ΄λ€.
μΆμνκΈ° μν΄ μ¬μ©μμ μΌμ μ μ‘°μ¨νκ³ κ³΅μ νλ κ³Όμ μ κ±°
λ 립μ λ°°ν¬λ₯Ό μν΄μλ νμνλ€.
μμμ μμ΄ μΈνλΌ κ΅¬μ‘°λ₯Ό μνλ μνλ‘ μ μ§ν μ μλ μλ¨μ΄ νμνλ€.
κ°λ°μμ κ°μ μμ΄ μΈνλΌ μνλ₯Ό μνλ μνλ‘ μ μ§νλ κ²μ λ§νλ€.
e.g. μ΅μ 3κ°μ μΈμ€ν΄μ€κ° μ€νμ€μ΄μ΄μΌ ν¨.
e.g. CPU λΆνκ° 50%μ΄μμ΄λ©΄ μΈμ€ν΄μ€λ₯Ό 1κ° λ λλ¦Ό.
νλ«νΌ μ§μ/λꡬ νμ.
λΌλ μ± μ λμ€λ 5κ°μ λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬ μμΉμ λν΄μ μ΄ν΄λ³΄μ.
λΆν/λ°°ν¬μ μμ΄ λ§μ΄ν¬λ‘μλΉμ€κ°μ μν₯μ μ£Όμ΄μλ μλλ€.
λ€μκ³Ό κ°μ μν©μ 보μ.
Example : ν νΈμ€νΈμμ μ¬λ¬ λ§μ΄ν¬λ‘ μλΉμ€ μΈμ€ν΄μ€ μ€ν.
ν λ§μ΄ν¬λ‘μλΉμ€μ λΆνκ° κΈκ²©ν μ¦κ° β λ€λ₯Έ λ§μ΄ν¬λ‘μλΉμ€ μ±λ₯ μ ν
ν λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬λ₯Ό μν μ€μ λ³κ²½ β λ€λ₯Έ λ§μ΄ν¬λ‘μλΉμ€ λ°°ν¬ μν₯
λ§μ΄ν¬λ‘μλΉμ€λ μλ‘ κ²©λ¦¬λ νκ²½μμ μ€νλμ΄μΌ νλ€. κ·Έλ μ§ λͺ»νλ©΄ μμ κ°μ μν©μ΄ λ°μν μ μλ€.
물리μ μΌλ‘ 격리λ₯Ό νλκ° νΉμ κ°μν, 컨ν μ΄λ λ±μΌλ‘ 격리λ₯Ό νλλ‘ νλ€.
물리μ 격리 : κ°ν 격리
λ Όλ¦¬μ 격리 : λΉ λ₯Έ μ 곡
λ§μ΄ν¬λ‘μλΉμ€κ° μ¦κ°ν μλ‘ λ 볡μ‘ν΄μ§λ€.
λ λ§μ μ μ°¨, λ λ§μ μ€μ , λ λ§μ λͺ¨λν°λ§ λμ
μ΄μ λΆν μ¦κ°
μ΄μ λΆν κ°μ μν΄ μλνμ μ΄μ μ λ§μΆ°μΌνλ€.
μλννμ§ μμΌλ©΄ μ±μ₯μ λΉ λ₯΄κ² λμν μ μμ
κ°λ°μκ° μ§μ μΈνλΌ μλΉμ€λ₯Ό μ 곡ν μ μλλ‘ νλ€ β μμ°μ± μ¦κ°λ‘ μ΄μ΄μ§λ€.
μΈνλΌ κ΅¬μ‘°λ₯Ό μ½λλ‘ μ μνλΌ.
μλνλ₯Ό ꡬννλ ν κ°μ§ λ°©λ²μ€ νλμ΄λ€.
ν μ€νΈ νμμΌλ‘ μνλ μΈνλΌ κ΅¬μ‘° μ μ
μΈνλΌ κ΅¬μ‘°μ λν λ²μ κ΄λ¦¬κ° κ°λ₯ν΄μ§λ€.
Terraform, Pulumi κ°μ νΉνλ λκ΅¬κ° μλ€.
λ§μ΄ν¬λ‘μλΉμ€ κ°λ°/λ°°ν¬μ μμ΄ λ¬΄μ€λ¨ λ°°ν¬λ νμμ΄λ€.
μλΉμ€ μ¬μ©μμ ν΅μ§νμ§ μκ³ μΆμνλ κ²μ΄ λͺ©νμ΄λ€.
μΆμνκΈ° μν΄ μ¬μ©μμ μΌμ μ μ‘°μ¨νκ³ κ³΅μ νλ κ³Όμ μ κ±°
λ 립μ λ°°ν¬λ₯Ό μν΄μλ νμνλ€.
μμμ μμ΄ μΈνλΌ κ΅¬μ‘°λ₯Ό μνλ μνλ‘ μ μ§ν μ μλ μλ¨μ΄ νμνλ€.
κ°λ°μμ κ°μ μμ΄ μΈνλΌ μνλ₯Ό μνλ μνλ‘ μ μ§νλ κ²μ λ§νλ€.
e.g. μ΅μ 3κ°μ μΈμ€ν΄μ€κ° μ€νμ€μ΄μ΄μΌ ν¨.
e.g. CPU λΆνκ° 50%μ΄μμ΄λ©΄ μΈμ€ν΄μ€λ₯Ό 1κ° λ λλ¦Ό.
νλ«νΌ μ§μ/λꡬ νμ.
No activity yet