value_transaction

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0, BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADDRESS_OFFSET                    = 0
	VALUE_OFFSET                      = ADDRESS_END
	TIMESTAMP_OFFSET                  = VALUE_END
	SIGNATURE_MESSAGE_FRAGMENT_OFFSET = TIMESTAMP_END

	ADDRESS_SIZE                    = 243
	VALUE_SIZE                      = 81
	TIMESTAMP_SIZE                  = 27
	SIGNATURE_MESSAGE_FRAGMENT_SIZE = 6561
	BUNDLE_ESSENCE_SIZE             = ADDRESS_SIZE + VALUE_SIZE + SIGNATURE_MESSAGE_FRAGMENT_SIZE

	ADDRESS_END                    = ADDRESS_OFFSET + ADDRESS_SIZE
	VALUE_END                      = VALUE_OFFSET + VALUE_SIZE
	TIMESTAMP_END                  = TIMESTAMP_OFFSET + TIMESTAMP_SIZE
	SIGNATURE_MESSAGE_FRAGMENT_END = SIGNATURE_MESSAGE_FRAGMENT_OFFSET + SIGNATURE_MESSAGE_FRAGMENT_SIZE

	TOTAL_SIZE = SIGNATURE_MESSAGE_FRAGMENT_END
)

Variables

Functions

This section is empty.

Types

type ValueTransaction

type ValueTransaction struct {
	*meta_transaction.MetaTransaction
	// contains filtered or unexported fields
}

func FromBytes

func FromBytes(bytes []byte) (result *ValueTransaction)

func FromMetaTransaction

func FromMetaTransaction(metaTransaction *meta_transaction.MetaTransaction) *ValueTransaction

func New

func New() (result *ValueTransaction)

func (*ValueTransaction) GetAddress

func (this *ValueTransaction) GetAddress() (result trinary.Trytes)

getter for the address (supports concurrency)

func (*ValueTransaction) GetBundleEssence

func (this *ValueTransaction) GetBundleEssence(includeSignatureMessageFragment bool) (result trinary.Trits)

func (*ValueTransaction) GetSignatureMessageFragment

func (this *ValueTransaction) GetSignatureMessageFragment() (result trinary.Trytes)

getter for the signatureMessageFragmetn (supports concurrency)

func (*ValueTransaction) GetTimestamp

func (this *ValueTransaction) GetTimestamp() (result uint)

getter for the timestamp (supports concurrency)

func (*ValueTransaction) GetValue

func (this *ValueTransaction) GetValue() (result int64)

getter for the value (supports concurrency)

func (*ValueTransaction) SetAddress

func (this *ValueTransaction) SetAddress(address trinary.Trytes) bool

setter for the address (supports concurrency)

func (*ValueTransaction) SetSignatureMessageFragment

func (this *ValueTransaction) SetSignatureMessageFragment(signatureMessageFragment trinary.Trytes) bool

setter for the nonce (supports concurrency)

func (*ValueTransaction) SetTimestamp

func (this *ValueTransaction) SetTimestamp(timestamp uint) bool

setter for the timestamp (supports concurrency)

func (*ValueTransaction) SetValue

func (this *ValueTransaction) SetValue(value int64) bool

setter for the value (supports concurrency)

Jump to

Keyboard shortcuts

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