package
0.4.8
Repository: https://github.com/stratumn/go-core.git
Documentation: pkg.go.dev

# Functions

NewBytes20FromString creates a Bytes20 from a hex encoded string.
NewBytes32FromBytes creates a Bytes32 from a byte slice.
NewBytes32FromString creates a Bytes32 from a hex encoded string.
NewError creates a new error and captures a stack trace.
NewErrorf creates a new error and captures a stack trace.
NewReversedBytes20FromString creates a ReversedBytes20 from a hex encoded string.
NewReversedBytes32FromString creates a ReversedBytes32 from a hex encoded string.
WrapError wraps an error and adds a stack trace.
WrapErrorf wraps an error and adds a stack trace.

# Constants

Bytes20Size is the size of a 20-byte long byte array.
Bytes32Size is the size of a 32-byte long byte array.
Component name for monitoring.

# Variables

Bytes32Zero is the default value for a 32-byte long byte array.

# Structs

Error structure to provide accurate metrics and logs.
Link simply wraps a chainscript.Link.
PaginatedSegments is a slice of segments along with the total results count.

# Type aliases

Bytes20 is a 20-byte long byte array.
Bytes32 is a 32-byte long byte array.
EvidenceSlice is a slice of evidences.
ReversedBytes20 is a 20-byte long byte reversed array.
ReversedBytes32 is a 32-byte long byte reversed array.
SegmentSlice is a slice of segment pointers.
TransactionID is a blockchain transaction ID.