๐Ÿ’ป 155

[Go] Go for Beginners

์‰ฝ๊ณ  ๋น ๋ฅธ Go ์‹œ์ž‘ํ•˜๊ธฐ – ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders Learn Go Fast nomadcoders.co ์ž‘์—… ํ™˜๊ฒฝ์€ C:\Go์— bin src pkg ํด๋”๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค(๊ถŒ์žฅ). Go๋Š” ํ•จ์ˆ˜์˜ ์ฒซ ๊ธ€์ž๊ฐ€ ๋Œ€๋ฌธ์ž/์†Œ๋ฌธ์ž ์ธ์ง€๋กœ public/private์„ ๊ตฌ๋ถ„ํ•œ๋‹ค. ํƒ€์ž… ์–ธ์–ด์ด๊ธฐ ๋•Œ๋ฌธ์—, ๊ธฐ๋ณธ์ ์œผ๋กœ ํƒ€์ž…์„ ๋ช…์‹œํ•ด์ค˜์•ผ ํ•˜์ง€๋งŒ, ํ•จ์ˆ˜ ์•ˆ์—์„œ ':=' ๊ธฐํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์•Œ์•„์„œ ์„ค์ •ํ•œ๋‹ค. ํ•˜๋‚˜์˜ ํ•จ์ˆ˜๊ฐ€ ๋‹ค์–‘ํ•œ ์ž๋ฃŒํ˜•์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. ์„ ์–ธํ•œ ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•œ ์ ์ด ์—†๋‹ค๋ฉด ์—๋Ÿฌ๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. ํ•จ์ˆ˜์—์„œ "naked" return(ํ•จ์ˆ˜ ์„ ์–ธ ์‹œ ๋ฐ˜ํ™˜ํ•  ํƒ€์ž…๊ณผ ํ•จ๊ป˜ ๋ณ€์ˆ˜ ๋ช…์„ ๊ฐ™์ด ์„ ์–ธ), defer(ํ•จ์ˆ˜ ์ข…๋ฃŒ ํ›„ ์‹คํ–‰๋˜๋Š” ์ฝ”๋“œ) ๋“ฑ์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ฐ˜๋ณต๋ฌธ nubmers := [5]int{1, 2, 3, 4, 5..

[๊ฐœ๋ฐœํ™˜๊ฒฝ] PC ํด๋”, ํŒŒ์ผ, ๋ฒ„์ „ ๊ด€๋ฆฌ

ํด๋”์ •๋ฆฌ ๋ฐฉ๋ฒ• | ํŒŒ์ผ๋ถ„๋ฅ˜ | ๋„ค์ด๋ฐ๊ทœ์น™ | ๋ฒ„์ „๊ด€๋ฆฌ ํด๋”์ •๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ• ์•Œ์•„๋ณด๊ธฐ ํšŒ์‚ฌ ์—…๋ฌด์šฉ PC๋‚˜ ๊ฐœ์ธPC ์ •๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ์ฐธ ์–ด๋ ค์šด๊ฒŒ ํ˜„์‹ค์ด๋‹ค ์ง์žฅ์ƒํ™œ์„ ํ•˜๋ฉด ํ• ์ˆ˜๋ก ์ต์ˆ™ํ•ด์ง€๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ ์—…๋ฌด์–‘์ด ๋งŽ์•„์ง€๋ฉด ์งˆ์ˆ˜๋ก ์ •๋ฆฌํ•ด์•ผํ•˜๋Š” ๊ฒƒ์ด ๋งŽ์•„ 51293.tistory.com

[๋ธ”๋ก์ฒด์ธ] Solana, ์—ญ์‚ฌ์ฆ๋ช…

1. ์†”๋ผ๋‚˜(Solana) ์†”๋ผ๋‚˜๋Š” ์•„๋‚˜ํ†จ๋ฆฌ ์•ผ์นด๋ฒค์ฝ”(Anatoly Yakavenko)๋ผ๋Š”, ํ€„์ปด์—์„œ ์˜ค๋žซ๋™์•ˆ ๊ทผ๋ฌดํ–ˆ๋˜ ์‚ฌ๋žŒ์ด ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ์†”๋ผ๋‚˜๋Š” ๋ธ”๋ก์ƒ์„ฑ์ด ๋งค์šฐ ๋น ๋ฅด๊ณ , ์ดˆ๋‹น ํŠธ๋žœ์žญ์…˜๋„ ์‹ ์šฉ์นด๋“œ๋ฅผ ํ›จ์”ฌ ๋Šฅ๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ๋›ฐ์–ด๋‚œ ์„ฑ๋Šฅ์„ ์ธ์ • ๋ฐ›์•„ ์ด๋”๋ฆฌ์›€์˜ ์ž ์žฌ์  ๊ฒฝ์Ÿ์ž๋ผ๋Š” ํ‰๊ฐ€๋ฅผ ๋ฐ›์œผ๋ฉฐ '์ด๋”๋ฆฌ์›€ ํ‚ฌ๋Ÿฌ'๋ผ๋Š” ๋ณ„๋ช…์œผ๋กœ ๋ถˆ๋ฆฌ๊ธฐ๋„ ํ•ฉ๋‹ˆ๋‹ค. ๋ธ”๋ก 400ms(์†”๋ผ๋‚˜) > 10s(์ด๋”๋ฆฌ์›€) > 10min(๋น„ํŠธ์ฝ”์ธ) ํŠธ๋žœ์žญ์…˜ 710,000TPS(์†”๋ผ๋‚˜) > 23,666(VISA) 2. ์†”๋ผ๋‚˜๊ฐ€ ๋น ๋ฅธ ์ด์œ , ์—ญ์‚ฌ ์ฆ๋ช… ์†”๋ผ๋‚˜๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ๋Š” ์ง€๋ถ„ ์ฆ๋ช…(PoS)์ธ๋ฐ, ์—ฌ๊ธฐ์— ์‹œ๊ฐ„์ด๋ผ๋Š” ๋ณ€์ˆ˜๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ ์‹œ๊ฐ„์„ ๋ธ”๋ก์ฒด์ธ ๋„คํŠธ์›Œํฌ์— ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์—ญ์‚ฌ ์ฆ๋ช…(Proof of History, PoH)์ž…๋‹ˆ๋‹ค. ์—„๋ฐ€ํžˆ ..

[Besu] Hyperledger Besu๋ž€?

1. ์—”ํ„ฐํ”„๋ผ์ด์ฆˆ ๋ธ”๋ก์ฒด์ธ ๋ธ”๋ก์ฒด์ธ์˜ ๊ฐ€์žฅ ์ฃผ์š”ํ•œ ๊ฐ€์น˜ ์ค‘ ํ•˜๋‚˜๋Š” ํƒˆ์ค‘์•™ํ™”์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋ธ”๋ก์ฒด์ธ์„ ์ด์šฉํ•˜๋ฉด ์ค‘์•™์˜ ํ†ต์ œ๋‚˜ ๊ฐ„์„ญ ์—†์ด ๊ฐœ์ธ ๋Œ€ ๊ฐœ์ธ์ด ์‹ ๋ขฐ ๊ฐ€๋Šฅํ•œ ๊ฑฐ๋ž˜๋ฅผ ํ•  ์ˆ˜ ์žˆ์ฃ . ๊ทธ๋Ÿฐ ์˜๋ฏธ์—์„œ ๊ธฐ์—…์ด๋‚˜ ๊ธฐ๊ด€๋“ค์ด ์กฐ์ง ๋‚ด๋ถ€์—์„œ ์ด๊ฒƒ์„ ํ™œ์šฉํ•œ๋‹ค๊ณ  ํ•˜๋ฉด ์™ ์ง€ ์–ด์šธ๋ฆฌ์ง€ ์•Š๋Š”๋“ฏํ•œ ๋Š๋‚Œ์ด ๋“ญ๋‹ˆ๋‹ค. ๊ธฐ์—…์€ ํ•˜๋‚˜์˜ ๋ชฉํ‘œ๋กœ ์›€์ง์—ฌ์•ผํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ์•„๋ฌด๋ฆฌ ์ˆ˜ํ‰์ ์ธ ํŒ€์ด๋ผ๋„ ํŒ€์žฅ์€ ์กด์žฌํ•˜๊ธฐ ๋งˆ๋ จ์ž…๋‹ˆ๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ ๊ณต๊ธ‰๋ง ์ƒํ’ˆ ์ถ”์ , ๊ธ€๋กœ๋ฒŒ ๊ฒฐ์ œ๋‚ด์—ญ ๋“ฑ ๋น„์ฆˆ๋‹ˆ์Šค ํ”„๋กœ์„ธ์Šค๋ฅผ ๊ด€๋ฆฌํ•˜๋Š”๋ฐ์— ์‚ฌ์šฉํ• ํ…๋ฐ ๊ฐœ์ธ ๋ˆ„๊ตฌ๋‚˜ ์ ‘๊ทผํ•ด ์ฝ๊ณ  ์“ฐ๊ธฐ์—๋Š” ์ ํ•ฉํ•˜์ง€ ์•Š์•„ ๋ณด์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๊ธฐ์—…์€ ๋„คํŠธ์›Œํฌ์˜ ์ฃผ์ฒด๊ฐ€ ์กด์žฌํ•˜๊ณ  ์ž์‹ ๋“ค์ด ์ •ํ•œ ์กฐ๊ฑด์— ๋งž์ง€ ์•Š๋Š” ์ฐธ์—ฌ์ž๋Š” ์ œํ•œํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ํ—ˆ๊ฐ€ํ˜• ๋ธ”๋ก์ฒด์ธ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์—”ํ„ฐํ”„๋ผ์ด์ฆˆ ๋ธ”๋ก์ฒด์ธ์€ ๊ธฐ์—…์—์„œ ์‚ฌ์šฉํ•˜๋Š”..

[๋ธ”๋ก์ฒด์ธ] ๋ธ”๋ก์ฒด์ธ ๋ฐฐ๊ฒฝ์ง€์‹

1. ๋ธ”๋ก์ฒด์ธ ๋ธ”๋ก์ฒด์ธ์€ ์ด๋ฆ„ ๊ทธ๋Œ€๋กœ '๋ธ”๋ก' ๋‹จ์œ„์˜ ๋ฐ์ดํ„ฐ๋ฅผ '์ฒด์ธ' ํ˜•ํƒœ๋กœ ์ด์–ด๋†“์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์ž…๋‹ˆ๋‹ค. ์ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋Š” ํ”ํžˆ ์žฅ๋ถ€ ํ˜น์€ ์›์žฅ(Ledger)์ด๋ผ๊ณ  ๋ถ€๋ฆ…๋‹ˆ๋‹ค. ๋ธ”๋ก์ฒด์ธ ๋„คํŠธ์›Œํฌ์—์„œ๋Š” ์ฐธ์—ฌ์ž๊ฐ€ ๋ชจ๋‘ ๋™์ผํ•œ ๋‚ด์šฉ์˜ ์žฅ๋ถ€๋ฅผ ํ•˜๋‚˜์”ฉ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๋ธ”๋ก์ฒด์ธ์ด ๊ฑฐ๋ž˜์™€ ๊ด€๋ จ๋œ ๊ฒƒ์ด๋ผ๋ฉด, ์žฅ๋ถ€์—๋Š” ๋ˆ„๊ฐ€ ๋ˆ„๊ตฌ์—๊ฒŒ ์–ผ๋งˆ๋ฅผ ๋ณด๋ƒˆ๋Š”์ง€ ๊ฑฐ๋ž˜๋‚ด์—ญ์„ ์ ์–ด์•ผํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์žฅ๋ถ€์— ๊ฑฐ๋ž˜๋‚ด์—ญ์„ ์ถ”๊ฐ€ํ•  ๋•Œ๋Š” ๊ฑฐ๋ž˜๋‚ด์—ญ์„ ๊ทธ๋Œ€๋กœ ์žฅ๋ถ€์— ์ ๋Š” ๊ฒƒ์ด ์•„๋‹ˆ๋ผ, ๊ฑฐ๋ž˜๋‚ด์—ญ์„ ์ผ์ •๋Ÿ‰ ๋ชจ์•„์„œ '๋ธ”๋ก'์œผ๋กœ ํฌ์žฅ์„ ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ ํฌ์žฅ ์•ˆ์—๋Š” ํ•ด์‹œ ๋“ฑ ๋‹ค์–‘ํ•œ ๋ธ”๋ก์ฒด์ธ ์œ ์ง€์— ํ•„์š”ํ•œ ๊ฐ’๋“ค์„ ๊ฐ™์ด ๋„ฃ์Šต๋‹ˆ๋‹ค. ํฌ์žฅ์ด ์ž˜ ๋˜์—ˆ๋‹ค๋ฉด ์ด๊ฒƒ์„ '์ฒด์ธ'์ฒ˜๋Ÿผ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š” ๋ธ”๋ก๋“ค์˜ ๋งจ ๋’ค์— ์—ฐ๊ฒฐ์‹œํ‚ฌ ๊ฒƒ ์ž…๋‹ˆ๋‹ค. ๋ธ”๋ก์„ ์ฒด์ธ์ฒ˜๋Ÿผ ์—ฐ๊ฒฐ์‹œํ‚ฌ ๋•Œ, ..

[Besu] ๊ธฐ์ˆ ๋ฌธ์„œ ์ž‘์„ฑ ์‹œ ์ฐธ๊ณ  ๋งํฌ

* ๋…ธ๋งˆ๋“œ ์ฝ”๋” (์•”ํ˜ธํ™”ํ with NICO) ์ •์ฃผํ–‰ ์ถ”์ฒœ 1. ๋ธ”๋ก์ฒด์ธ 1-1. ๋ธ”๋ก์ฒด์ธ์ด๋ž€? ๋ธ”๋ก์ฒด์ธ์˜ ์ •์˜์™€ ๊ธฐ์ˆ  “๋น„์ „๊ณต์ž๋„ ์ดํ•ดํ•˜๋Š” ๊ธฐ๋ณธ์  ์ดํ•ด” ์•ˆ๋…•ํ•˜์„ธ์š” ๋ธ”๋ก์ฒด์ธ ์•Œ๋ ค์ฃผ๋Š” ๋‚จ์ž Ryan KIM ์ž…๋‹ˆ๋‹ค. medium.com YOUTUBE: Anders Brownworth (Blockchain Demo 101 - Visual Demo) 1-2. ํ•ฉ์˜(Consensus) Blockchain and Consensus Algorithm -Electronics and Telecommunications Trends | ํ•™ํšŒ Abstract A Blockchain is a type of distributed ledger system that consists of a large number of nodes...

[๋ธ”๋ก์ฒด์ธ] ์–‘์งˆ์˜ ์‚ฌ์ดํŠธ ๋ชจ์Œ

์œ ์šฉํ•œ ๋ธ”๋ก์ฒด์ธ ๊ณต๋ถ€ ์ž๋ฃŒ : Blockchain at Berkeley ์˜ฌํ•ด ์ดˆ๋ถ€ํ„ฐ ๋ธ”๋ก์ฒด์ธ์„ ๊ณต๋ถ€ ์‹œ์ž‘ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ˆˆ ๋–  ์žˆ๋Š” ๊ฑฐ์˜ ๋ชจ๋“  ์‹œ๊ฐ„ ๋™์•ˆ ๋ธ”๋ก์ฒด์ธ๋งŒ ๋ดค๋‹ค๊ณ  ์ƒ๊ฐํ•ด๋„ ๋  ์ •๋„๋กœ ๊นŠ๊ฒŒ ๋น ์ ธ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. medium.com

[Besu] ์—”ํ„ฐํ”„๋ผ์ด์ฆˆ ์ด๋”๋ฆฌ์›€ ํด๋ผ์ด์–ธํŠธ

Hyperledger Besu Enterprise Ethereum Client - Hyperledger Besu Last update: June 23, 2021 Besu Enterprise Ethereum Client What is Hyperledger Besu? Hyperledger Besu is an open-source Ethereum client developed under the Apache 2.0 license and written in Java. It runs on the Ethereum public network, private networks, an besu.hyperledger.org Hyperledger Besu JAVA๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ฐœ๋ฐœ๋œ ์˜คํ”ˆ ์†Œ์Šค ์ด๋”๋ฆฌ์›€ ํด๋ผ์ด์–ธํŠธ → ์ด๋”๋ฆฌ์›€์€ ..

[ํŒŒ์ด์ฌ] Flask ์‚ฌ์šฉ ์‹œ ๋””์ž์ธ ํŒจํ„ด

๊ฐœ๋ฐœํ•œ ์ฝ”๋“œ๊ฐ€ ์•„๋ž˜ ๋ถ€ํ•ฉํ•˜๋Š”์ง€ ํ™•์ธํ•˜๊ณ  ์ˆ˜์ •. ์„ค๊ณ„ ๋‹จ๊ณ„์—์„œ ๊น”๋”ํ•˜๊ฒŒ ํ–ˆ์–ด์•ผ ํ•˜๋Š”๋ฐ, ์„ค๊ณ„ ๋‹จ๊ณ„๊ฐ€ ์–ผ๋งˆ๋‚˜ ๊ฐœ๋ฐœ์— ์žˆ์–ด ์ค‘์š”ํ•œ์ง€ ๊นจ๋‹ซ๊ฒŒ ๋˜๋Š” ๊ณ„๊ธฐ๊ฐ€ ๋๋‹ค. Model-View-Controller (MVC) Explained – With Legos – Real Python This article details the Model-View-Controller (MVC) design pattern with Legos! realpython.com ๊ฐ์ฒด์ง€ํ–ฅ ์„ค๊ณ„ ์›์น™ 5๊ฐ€์ง€ ์ง€๋‚œ ํฌ์ŠคํŒ… ๊ฐ์ฒด์ง€ํ–ฅ ์ฃผ์š”ํŠน์ง•์— ์ด์–ด ์ด๋ฒˆ์—” ๊ฐ์ฒด์ง€ํ–ฅ์˜ ์ฃผ์š” 5๊ฐ€์ง€ ์›์น™์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ๊ฐ์ฒด์ง€ํ–ฅ 5๊ฐ€์ง€ ์›์น™์ธํ”„๋Ÿฐ์—์„œ ์Šคํ”„๋ง ํ•ต์‹ฌ ์›๋ฆฌ - ๊ธฐ๋ณธํŽธ์„ ์ˆ˜๊ฐ•ํ•˜๋ฉฐ ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ด๋‹ค. ํ† ๋น„ youngjinmo.github.io [Django/์žฅ๊ณ ]..

[ํŒŒ์ด์ฌ] ํด๋ฆฐ ์•„ํ‚คํ…์ณ, TDD

https://www.thedigitalcatonline.com/blog/2016/11/14/clean-architectures-in-python-a-step-by-step-example/ The Digital Cat - Clean architectures in Python: a step-by-step example In 2015 I was introduced by my friend Roberto Ciatti to the concept of Clean Architecture, as it is called by Robert Martin. The well-known Uncle Bob talks a lot about this concept at conferences and wrote some very inte..