specialEntries

package
v6.5.0-p2p2-beta2+inco... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 5 Imported by: 0

Documentation

Index

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

func CheckExternalIDsLength(extIDs [][]byte, lengths []int) bool

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

func (this *FEREntry) GetExpirationHeight() uint32

Getter ExpirationHeight

func (*FEREntry) GetPriority

func (this *FEREntry) GetPriority() uint32

Getter Priority

func (*FEREntry) GetResidentHeight

func (this *FEREntry) GetResidentHeight() uint32

Getter ResidentHeight

func (*FEREntry) GetTargetActivationHeight

func (this *FEREntry) GetTargetActivationHeight() uint32

Getter TargetActivationHeight

func (*FEREntry) GetTargetPrice

func (this *FEREntry) GetTargetPrice() uint64

Getter TargetPrice

func (*FEREntry) GetVersion

func (this *FEREntry) GetVersion() string

Getter Version

func (*FEREntry) JSONByte

func (e *FEREntry) JSONByte() ([]byte, error)

func (*FEREntry) JSONString

func (e *FEREntry) JSONString() (string, error)

func (*FEREntry) MarshalBinary

func (e *FEREntry) MarshalBinary() (rval []byte, err error)

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) String

func (e *FEREntry) String() string

func (*FEREntry) UnmarshalBinary

func (e *FEREntry) UnmarshalBinary(data []byte) (err error)

func (*FEREntry) UnmarshalBinaryData

func (e *FEREntry) UnmarshalBinaryData(data []byte) (newData []byte, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL