forever

package
v1.0.4-0...-dc1bf15 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoinType    kt.Type = "HOTU.COIN"
	CoinVersion         = kt.DefaultVersion
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	Type      kt.Type       `bson:"t" json:"t"`
	Version   kt.Version    `bson:"v" json:"v"`
	Vn        vn.ID         `bson:"vn" json:"vn"`
	Signature *kt.Signature `bson:"s" json:"s"`
	Code      uc.Code       `bson:"code" json:"code"`
	Wei       uc.WEI        `bson:"wei" json:"wei"`
}

func (*Coin) GetSignature

func (c *Coin) GetSignature() *kt.Signature

func (*Coin) GetType

func (c *Coin) GetType() kt.Type

func (*Coin) GetVN

func (c *Coin) GetVN() vn.ID

func (*Coin) GetVersion

func (c *Coin) GetVersion() kt.Version

func (*Coin) SetSignature

func (c *Coin) SetSignature(signature *kt.Signature)

func (*Coin) Signing

func (c *Coin) Signing() *kt.Signing

type SP

type SP struct {
	VN bid.BID `bson:"vn" json:"vn"`
	ID sp.ID   `bson:"id" json:"id"`
}

type Unique

type Unique struct {
	Code uc.Code
	Wei  uc.WEI
}

type Unit

type Unit struct {
	Code uc.Code
	Wei  uc.WEI
}

type VN

type VN struct {
	ID  vn.ID  `bson:"id" json:"id"`
	ADR ki.ADR `bson:"adr" json:"adr"`
	PUB ki.PUB `bson:"pub" json:"pub"`
}

Jump to

Keyboard shortcuts

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