txid

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionID

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

TransactionID represents a generated transaction ID.

func New

func New(mspID string, identity *identity.Identity) *TransactionID

New creates a new transaction ID for the specified MSP ID and identity.

func (*TransactionID) Identity

func (t *TransactionID) Identity() *identity.Identity

Identity returns the identity used to create this transaction ID.

func (*TransactionID) MSPID

func (t *TransactionID) MSPID() string

MSPID returns the MSP ID used to create this transaction ID.

func (*TransactionID) Nonce

func (t *TransactionID) Nonce() []byte

Nonce returns the nonce used to create this transaction ID.

func (*TransactionID) String

func (t *TransactionID) String() string

String returns the transaction ID as a string.

Jump to

Keyboard shortcuts

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