Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ mustDecodeHashPtr
Function
mustDecodeHashPtr
protocol/bc/block_test.go:297–304 ·
view source on GitHub ↗
(h string)
Source
from the content-addressed store, hash-verified
295
}
296
297
func
mustDecodeHashPtr(h string) *Hash {
298
var
hash Hash
299
err := hash.UnmarshalText([]byte(h))
300
if
err != nil {
301
panic(err)
302
}
303
return
&hash
304
}
Callers
1
TestSignBlock
Function · 0.85
Calls
1
UnmarshalText
Method · 0.95
Tested by
no test coverage detected