transactions

package
v0.0.0-...-18e50f4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SteemChain = &Chain{
	ID: "0000000000000000000000000000000000000000000000000000000000000000",
}
View Source
var TestChain = &Chain{
	ID: "18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e",
}

Functions

func RefBlockNum

func RefBlockNum(blockNumber types.UInt32) types.UInt16

func RefBlockPrefix

func RefBlockPrefix(blockID string) (types.UInt32, error)

Types

type Chain

type Chain struct {
	ID string
}

type SignedTransaction

type SignedTransaction struct {
	*types.Transaction
}

func NewSignedTransaction

func NewSignedTransaction(tx *types.Transaction) *SignedTransaction

func (*SignedTransaction) Digest

func (tx *SignedTransaction) Digest(chain *Chain) ([]byte, error)

func (*SignedTransaction) Serialize

func (tx *SignedTransaction) Serialize() ([]byte, error)

func (*SignedTransaction) Sign

func (tx *SignedTransaction) Sign(privKeys [][]byte, chain *Chain) error

func (*SignedTransaction) Verify

func (tx *SignedTransaction) Verify(pubKeys [][]byte, chain *Chain) (bool, error)

Jump to

Keyboard shortcuts

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