consensus

package
v0.0.0-...-4caad46 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntentionRank

type IntentionRank struct {
	From   string
	Rank_1 string // 排名第一的NodeID,用逗号分隔
	Term   string
	Ts     string

	Hash      string
	Signature string
}

排名

func (*IntentionRank) LoadFromInterface

func (pi *IntentionRank) LoadFromInterface(obj interface{}) error

func (*IntentionRank) LoadFromJSONString

func (pi *IntentionRank) LoadFromJSONString(jsonString string) error

func (*IntentionRank) PackToJSONString

func (pi *IntentionRank) PackToJSONString() string

func (*IntentionRank) Sign

func (pi *IntentionRank) Sign(privateKey string) error

type PackageIntention

type PackageIntention struct {
	From      string
	Intention string
	Term      string
	Ts        string

	Hash      string
	Signature string
}

打包意向数据包

func (*PackageIntention) LoadFromInterface

func (pi *PackageIntention) LoadFromInterface(obj interface{}) error

func (*PackageIntention) LoadFromJSONString

func (pi *PackageIntention) LoadFromJSONString(jsonString string) error

func (*PackageIntention) PackToJSONString

func (pi *PackageIntention) PackToJSONString() string

func (*PackageIntention) Sign

func (pi *PackageIntention) Sign(privateKey string) error

Jump to

Keyboard shortcuts

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