Go로 만드는 블록체인 part 1 - Base of Blockchain


Go로 만드는 블록체인 part 1 - Base of Blockchain

이제 본격적으로 GO를 이용하여 암호화폐를 구현해볼 것이다. Type block, blockchain block과 blockchain의 type을 선언하겠다. type block struct { timeStamp int64 `validate:"required"` hash string `validate:"required"` prevHash string `validate:"required"` data string `validate:"required"` } type blockchain struct { blocks []*block } time stamp hash previous hash data 초기 단계에서의 블록은 위와 같은 요소를 가진다. 이전 포스트에서 다룬 typescript로 구현해본 blockcha..


원문링크 : Go로 만드는 블록체인 part 1 - Base of Blockchain