Documentation
¶
Index ¶
Constants ¶
View Source
const ClaimIDSize = 20
ClaimID represents a Claim's ClaimID.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct {
Type ChangeType
Height int32
Name []byte
ClaimID ClaimID
OutPoint wire.OutPoint
Amount int64
ActiveHeight int32
VisibleHeight int32 // aka, CreatedAt; used for normalization fork
SpentChildren map[string]bool
}
func NewChange ¶
func NewChange(typ ChangeType) Change
type ChangeType ¶
type ChangeType uint32
const ( AddClaim ChangeType = iota SpendClaim UpdateClaim AddSupport SpendSupport )
type ClaimID ¶
type ClaimID [ClaimIDSize]byte
func NewClaimID ¶
NewClaimID returns a Claim ID calculated from Ripemd160(Sha256(OUTPOINT).
func NewIDFromString ¶
NewIDFromString returns a Claim ID from a string.
Click to show internal directories.
Click to hide internal directories.