transactions

package
v0.0.0-...-8e4544a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefBlockNum

func RefBlockNum(blockNumber uint32) types.UInt16

RefBlockNum function returns blockNumber

func RefBlockPrefix

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

RefBlockPrefix function returns block prefix

Types

type SignedTransaction

type SignedTransaction struct {
	*operations.Transaction
}

SignedTransaction structure of a signed transaction

func NewSignedTransaction

func NewSignedTransaction(tx *operations.Transaction) *SignedTransaction

NewSignedTransaction initialization of a new signed transaction

func (*SignedTransaction) Digest

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

Digest function that returns a digest from a serialized transaction

func (*SignedTransaction) Serialize

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

Serialize function serializes a transaction

func (*SignedTransaction) Sign

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

Sign function directly generating transaction signature

func (*SignedTransaction) SignSingle

func (tx *SignedTransaction) SignSingle(privB, data []byte) ([]byte, error)

SignSingle signature of the transaction by one of the keys

Directories

Path Synopsis
Package rfc6979 is an implementation of RFC 6979's deterministic DSA.
Package rfc6979 is an implementation of RFC 6979's deterministic DSA.

Jump to

Keyboard shortcuts

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