Documentation ¶
Index ¶
- Constants
- func CheckExternalIDsLength(extIDs [][]byte, lengths []int) bool
- func GetIdentityType(ent interfaces.IEBEntry) string
- func ValidateIdentityChain(ent interfaces.IEBEntry) error
- func ValidateIdentityEntry(ent interfaces.IEBEntry) error
- func ValidateNewBitcoinKey(ent interfaces.IEBEntry) error
- func ValidateNewBlockSigningKey(ent interfaces.IEBEntry) error
- func ValidateNewMatryoshkaHash(ent interfaces.IEBEntry) error
- func ValidateRegisterServerManagement(ent interfaces.IEBEntry) error
- func ValidateServerManagement(ent interfaces.IEBEntry) error
- type FEREntry
- func (this *FEREntry) GetExpirationHeight() uint32
- func (this *FEREntry) GetPriority() uint32
- func (this *FEREntry) GetResidentHeight() uint32
- func (this *FEREntry) GetTargetActivationHeight() uint32
- func (this *FEREntry) GetTargetPrice() uint64
- func (this *FEREntry) GetVersion() string
- func (e *FEREntry) JSONByte() ([]byte, error)
- func (e *FEREntry) JSONString() (string, error)
- func (e *FEREntry) MarshalBinary() (rval []byte, err error)
- func (this *FEREntry) SetExpirationHeight(passedExpirationHeight uint32) interfaces.IFEREntry
- func (this *FEREntry) SetPriority(passedPriority uint32) interfaces.IFEREntry
- func (this *FEREntry) SetResidentHeight(passedResidentHeight uint32) interfaces.IFEREntry
- func (this *FEREntry) SetTargetActivationHeight(passedTargetActivationHeight uint32) interfaces.IFEREntry
- func (this *FEREntry) SetTargetPrice(passedTargetPrice uint64) interfaces.IFEREntry
- func (this *FEREntry) SetVersion(passedVersion string) interfaces.IFEREntry
- func (e *FEREntry) String() string
- func (e *FEREntry) UnmarshalBinary(data []byte) (err error)
- func (e *FEREntry) UnmarshalBinaryData(data []byte) (newData []byte, err error)
Constants ¶
View Source
const ( TypeRegisterServerManagement = "Register Server Management" TypeNewBlockSigningKey = "New Block Signing Key" TypeNewBitcoinKey = "New Bitcoin Key" TypeNewMatryoshkaHash = "New Matryoshka Hash" TypeIdentityChain = "Identity Chain" TypeServerManagement = "Server Management" IdentityChainID = "888888001750ede0eff4b05f0c3f557890b256450cabbb84cada937f9c258327" )
Variables ¶
This section is empty.
Functions ¶
func CheckExternalIDsLength ¶
Checking the external ids if they match the needed lengths
func GetIdentityType ¶
func GetIdentityType(ent interfaces.IEBEntry) string
func ValidateIdentityChain ¶
func ValidateIdentityChain(ent interfaces.IEBEntry) error
func ValidateIdentityEntry ¶
func ValidateIdentityEntry(ent interfaces.IEBEntry) error
func ValidateNewBitcoinKey ¶
func ValidateNewBitcoinKey(ent interfaces.IEBEntry) error
func ValidateNewBlockSigningKey ¶
func ValidateNewBlockSigningKey(ent interfaces.IEBEntry) error
func ValidateNewMatryoshkaHash ¶
func ValidateNewMatryoshkaHash(ent interfaces.IEBEntry) error
func ValidateRegisterServerManagement ¶
func ValidateRegisterServerManagement(ent interfaces.IEBEntry) error
func ValidateServerManagement ¶
func ValidateServerManagement(ent interfaces.IEBEntry) error
Types ¶
type FEREntry ¶
type FEREntry struct { Version string `json:"version"` ExpirationHeight uint32 `json:"expiration_height"` ResidentHeight uint32 `json:"resident_height"` TargetActivationHeight uint32 `json:"target_activation_height"` Priority uint32 `json:"priority"` TargetPrice uint64 `json:"target_price"` }
func (*FEREntry) GetExpirationHeight ¶
Getter ExpirationHeight
func (*FEREntry) GetResidentHeight ¶
Getter ResidentHeight
func (*FEREntry) GetTargetActivationHeight ¶
Getter TargetActivationHeight
func (*FEREntry) JSONString ¶
func (*FEREntry) MarshalBinary ¶
func (*FEREntry) SetExpirationHeight ¶
func (this *FEREntry) SetExpirationHeight(passedExpirationHeight uint32) interfaces.IFEREntry
Setter ExpirationHeight
func (*FEREntry) SetPriority ¶
func (this *FEREntry) SetPriority(passedPriority uint32) interfaces.IFEREntry
Setter Priority
func (*FEREntry) SetResidentHeight ¶
func (this *FEREntry) SetResidentHeight(passedResidentHeight uint32) interfaces.IFEREntry
Setter ResidentHeight
func (*FEREntry) SetTargetActivationHeight ¶
func (this *FEREntry) SetTargetActivationHeight(passedTargetActivationHeight uint32) interfaces.IFEREntry
Setter TargetActivationHeight
func (*FEREntry) SetTargetPrice ¶
func (this *FEREntry) SetTargetPrice(passedTargetPrice uint64) interfaces.IFEREntry
Setter TargetPrice
func (*FEREntry) SetVersion ¶
func (this *FEREntry) SetVersion(passedVersion string) interfaces.IFEREntry
Setter Version
func (*FEREntry) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.