transactions

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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