compressed

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The size of a transaction in bytes.
	TransactionSize = 1604

	// The amount of bytes making up the non signature message fragment part of a transaction gossip payload.
	NonSigTxPartBytesLength = 292

	// The max amount of bytes a signature message fragment is made up from.
	SigDataMaxBytesLength = 1312
)

Variables

This section is empty.

Functions

func TransactionFromCompressedBytes

func TransactionFromCompressedBytes(transactionData []byte, txHash ...trinary.Hash) (*transaction.Transaction, error)

func TruncateTx

func TruncateTx(txBytes []byte) []byte

TruncateTx truncates the encoded transaction data.

txBytes the transaction bytes to truncate
return an array containing the truncated transaction data

func TruncateTxTrits added in v0.5.4

func TruncateTxTrits(txTrits trinary.Trits) []byte

TruncateTxTrits encodes txTrits into bytes and truncates them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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