Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
556
func
newHash(n byte) *bc.Hash {
557
h := bc.NewHash([32]byte{n})
558
return
&h
559
}
560
561
func
newAssetID(n byte) *bc.AssetID {
562
a := bc.NewAssetID([32]byte{n})
Callers
3
TestTxValidation
Function · 0.85
TestBlockHeaderValid
Function · 0.85
sample
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected