types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(codec *codec.Codec)

Types

type Height

type Height interface {
	String() string
	Bytes() []byte
	Get() int64

	Compare(Height) int
}

Height type to represent blockchain's block height 0 height === chain genesis block height -1 height === infinite block height

type Signature

type Signature interface {
	String() string
	Bytes() []byte

	GetID() ids.ID

	Verify(crypto.PubKey, []byte) bool
	GetValidityHeight() Height
	HasExpired(Height) bool
}

type Split added in v0.3.0

type Split interface {
	GetOwnerID() ids.IdentityID
	GetOwnableID() ids.OwnableID
	GetValue() sdkTypes.Dec
	CanSend(sdkTypes.Dec) bool

	Send(sdkTypes.Dec) Split
	Receive(sdkTypes.Dec) Split
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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