transaction

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeTxID

func ComputeTxID(id *driver.TxID) string

func ComputeTxIDFull

func ComputeTxIDFull(nonce, creator []byte) string

func GetRandomNonce

func GetRandomNonce() ([]byte, error)

func NewEndorseTransactionService

func NewEndorseTransactionService(kvss *kvs.KVS, network string) *ets

func NewEnvelopeService

func NewEnvelopeService(kvss *kvs.KVS, network string) *envs

func NewMetadataService

func NewMetadataService(kvss *kvs.KVS, network string) *mds

Types

type Envelope

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

func (*Envelope) Bytes

func (e *Envelope) Bytes() ([]byte, error)

func (*Envelope) Creator

func (e *Envelope) Creator() []byte

func (*Envelope) FromBytes

func (e *Envelope) FromBytes(raw []byte) error

func (*Envelope) Nonce

func (e *Envelope) Nonce() []byte

func (*Envelope) Results

func (e *Envelope) Results() []byte

func (*Envelope) String

func (e *Envelope) String() string

func (*Envelope) TxID

func (e *Envelope) TxID() string

type Manager

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

func NewManager

func NewManager(sm driver.SessionManager) *Manager

func (*Manager) CommitEnvelope

func (m *Manager) CommitEnvelope(session driver.Session, envelope driver.Envelope) error

func (*Manager) ComputeTxID

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

func (*Manager) NewEnvelope

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

Jump to

Keyboard shortcuts

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