Guest User

Untitled

a guest
Sep 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. func main() {
  2. bc := NewBlockchain()
  3.  
  4. bc.AddBlock("Send 1 taka to karim ")
  5. bc.AddBlock("Send 2 taka to Rahim")
  6.  
  7. for _, block := range bc.blocks {
  8. fmt.Printf("Prev. hash: %x\n", block.PrevBlockHash)
  9. fmt.Printf("Data: %s\n", block.Data)
  10. fmt.Printf("Hash: %x\n", block.Hash)
  11. fmt.Println()
  12. }
  13. }
Add Comment
Please, Sign In to add comment