Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentID ¶
type ContentID struct {
// contains filtered or unexported fields
}
ContentID represents a CID
func NewContentID ¶
NewContentID creates a CID object
func NewContentIDFromBytes ¶
NewContentIDFromBytes creates a CID object
func NewRandomContentID ¶
NewRandomContentID creates a random content id object
func (ContentID) CalculateHash ¶
CalculateHash hashes the values of a TestContent
func (ContentID) Equals ¶
func (n ContentID) Equals(other merkletree.Content) (bool, error)
Equals tests for equality of two Contents
func (ContentID) MarshalJSON ¶
MarshalJSON is used to marshal NodeID into bytes
func (*ContentID) UnmarshalJSON ¶
UnmarshalJSON is used to unmarshal bytes into ContentID
Click to show internal directories.
Click to hide internal directories.