MCPcopy Create free account
hub / github.com/chain/Core / newHash

Function newHash

protocol/validation/validation_test.go:556–559  ·  view source on GitHub ↗
(n byte)

Source from the content-addressed store, hash-verified

554}
555
556func newHash(n byte) *bc.Hash {
557 h := bc.NewHash([32]byte{n})
558 return &h
559}
560
561func newAssetID(n byte) *bc.AssetID {
562 a := bc.NewAssetID([32]byte{n})

Callers 3

TestTxValidationFunction · 0.85
TestBlockHeaderValidFunction · 0.85
sampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected