INNER CODE UNIT · Go

func

volodymyrprokopyuk/go-blockchain · chain/block.go:49

func (b Block) Hash() Hash {
  return NewHash(b)
}

type SigBlock struct {
  Block
  Sig []byte `json:"sig"`
}

func NewSigBlock(blk Block, sig []byte) SigBlock {
  return SigBlock{Block: blk, Sig: sig}
}

func (b SigBlock) Hash() Hash {
  return NewHash(b)
}

func (b SigBlock) String() string {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…