unsigned

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptedUnsignedTransaction

type InterceptedUnsignedTransaction struct {
	// contains filtered or unexported fields
}

InterceptedUnsignedTransaction holds and manages a transaction based struct with extended functionality

func NewInterceptedUnsignedTransaction

func NewInterceptedUnsignedTransaction(
	uTxBuff []byte,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	pubkeyConv core.PubkeyConverter,
	coordinator sharding.Coordinator,
) (*InterceptedUnsignedTransaction, error)

NewInterceptedUnsignedTransaction returns a new instance of InterceptedUnsignedTransaction

func (*InterceptedUnsignedTransaction) CheckValidity

func (inUTx *InterceptedUnsignedTransaction) CheckValidity() error

CheckValidity checks if the received transaction is valid (not nil fields, valid sig and so on)

func (*InterceptedUnsignedTransaction) Fee

func (inUTx *InterceptedUnsignedTransaction) Fee() *big.Int

Fee represents the unsigned transaction fee. It is always 0

func (*InterceptedUnsignedTransaction) Hash

func (inUTx *InterceptedUnsignedTransaction) Hash() []byte

Hash gets the hash of this transaction

func (*InterceptedUnsignedTransaction) Identifiers added in v1.0.110

func (inUTx *InterceptedUnsignedTransaction) Identifiers() [][]byte

Identifiers returns the identifiers used in requests

func (*InterceptedUnsignedTransaction) IsForCurrentShard

func (inUTx *InterceptedUnsignedTransaction) IsForCurrentShard() bool

IsForCurrentShard returns true if this transaction is meant to be processed by the node from this shard

func (*InterceptedUnsignedTransaction) IsInterfaceNil

func (inUTx *InterceptedUnsignedTransaction) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*InterceptedUnsignedTransaction) Nonce

func (inUTx *InterceptedUnsignedTransaction) Nonce() uint64

Nonce returns the transaction nonce

func (*InterceptedUnsignedTransaction) ReceiverShardId

func (inUTx *InterceptedUnsignedTransaction) ReceiverShardId() uint32

ReceiverShardId returns the receiver shard

func (*InterceptedUnsignedTransaction) SenderAddress

func (inUTx *InterceptedUnsignedTransaction) SenderAddress() []byte

SenderAddress returns the transaction sender address

func (*InterceptedUnsignedTransaction) SenderShardId

func (inUTx *InterceptedUnsignedTransaction) SenderShardId() uint32

SenderShardId returns the sender shard

func (*InterceptedUnsignedTransaction) String added in v0.0.5

func (inUTx *InterceptedUnsignedTransaction) String() string

String returns the unsigned transaction's most important fields as string

func (*InterceptedUnsignedTransaction) Transaction

Transaction returns the transaction pointer that actually holds the data

func (*InterceptedUnsignedTransaction) Type

func (inUTx *InterceptedUnsignedTransaction) Type() string

Type returns the type of this intercepted data

Jump to

Keyboard shortcuts

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