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

Method HexString

protocol/bc/hash.go:37–40  ·  view source on GitHub ↗

HexString is a reader-friendlier alternative to the protoc-generated String method.

()

Source from the content-addressed store, hash-verified

35// HexString is a reader-friendlier alternative to the
36// protoc-generated String method.
37func (h Hash) HexString() string {
38 b, _ := h.MarshalText()
39 return string(b)
40}
41
42// MarshalText satisfies the TextMarshaler interface.
43// It returns the bytes of h encoded in hex,

Callers 1

getBlockchainIDFunction · 0.80

Calls 1

MarshalTextMethod · 0.95

Tested by

no test coverage detected