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

Method Byte32

protocol/bc/hash.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (h Hash) Byte32() (b32 [32]byte) {
28 binary.BigEndian.PutUint64(b32[0:8], h.V0)
29 binary.BigEndian.PutUint64(b32[8:16], h.V1)
30 binary.BigEndian.PutUint64(b32[16:24], h.V2)
31 binary.BigEndian.PutUint64(b32[24:32], h.V3)
32 return b32
33}
34
35// HexString is a reader-friendlier alternative to the
36// protoc-generated String method.

Callers 2

MarshalTextMethod · 0.95
BytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected