Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/Core
/ Bytes
Method
Bytes
protocol/bc/hash.go:81–84 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
79
}
80
81
func
(h Hash) Bytes() []byte {
82
b32 := h.Byte32()
83
return
b32[:]
84
}
85
86
// Value satisfies the driver.Valuer interface
87
func
(h Hash) Value() (driver.Value, error) {
Callers
15
NewTxVMContext
Function · 0.95
checkValid
Function · 0.95
Value
Method · 0.95
WriteTo
Method · 0.95
buildSigProgram
Function · 0.95
CopyBytes
Function · 0.45
WriteExtensibleString
Function · 0.45
TestVarint31
Function · 0.45
TestVarint63
Function · 0.45
TestVarstring31
Function · 0.45
TestEmptyVarstring31
Function · 0.45
TestTooLongVarstring31
Function · 0.45
Calls
1
Byte32
Method · 0.95
Tested by
15
TestVarint31
Function · 0.36
TestVarint63
Function · 0.36
TestVarstring31
Function · 0.36
TestEmptyVarstring31
Function · 0.36
TestTooLongVarstring31
Function · 0.36
TestVarstrList
Function · 0.36
TestVarstrListWithEOF
Function · 0.36
TestTooLongVarstrList
Function · 0.36
TestExtensibleString
Function · 0.36
TestReadWriteVarint31
Function · 0.36
TestReadWriteVarint63
Function · 0.36
TestReadWriteVarstr31
Function · 0.36