transaction

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct{}

func NewManager

func NewManager() *Manager

func (*Manager) AddTransactionFactory

func (m *Manager) AddTransactionFactory(tt driver.TransactionType, factory driver.TransactionFactory)

func (*Manager) ComputeTxID

func (m *Manager) ComputeTxID(id *driver.TxIDComponents) string

func (*Manager) NewEnvelope

func (m *Manager) NewEnvelope() driver.Envelope

func (*Manager) NewProcessedTransaction

func (m *Manager) NewProcessedTransaction(pt []byte) (driver.ProcessedTransaction, error)

func (*Manager) NewProcessedTransactionFromEnvelopePayload

func (m *Manager) NewProcessedTransactionFromEnvelopePayload(envelopePayload []byte) (driver.ProcessedTransaction, int32, error)

func (*Manager) NewProcessedTransactionFromEnvelopeRaw

func (m *Manager) NewProcessedTransactionFromEnvelopeRaw(envelope []byte) (driver.ProcessedTransaction, error)

func (*Manager) NewProposalResponseFromBytes

func (m *Manager) NewProposalResponseFromBytes(raw []byte) (driver.ProposalResponse, error)

func (*Manager) NewTransaction

func (m *Manager) NewTransaction(ctx context.Context, transactionType driver.TransactionType, creator view.Identity, nonce []byte, txid string, channel string, rawRequest []byte) (driver.Transaction, error)

func (*Manager) NewTransactionFromBytes

func (m *Manager) NewTransactionFromBytes(ctx context.Context, channel string, raw []byte) (driver.Transaction, error)

func (*Manager) NewTransactionFromEnvelopeBytes

func (m *Manager) NewTransactionFromEnvelopeBytes(ctx context.Context, channel string, raw []byte) (driver.Transaction, error)

Jump to

Keyboard shortcuts

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