serialization

package
v0.11.14 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: ISC Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SerializePartiallySignedTransaction

func SerializePartiallySignedTransaction(partiallySignedTransaction *PartiallySignedTransaction) ([]byte, error)

SerializePartiallySignedTransaction serializes a PartiallySignedTransaction.

Types

type PartiallySignedInput

type PartiallySignedInput struct {
	PrevOutput           *externalapi.DomainTransactionOutput
	MinimumSignatures    uint32
	PubKeySignaturePairs []*PubKeySignaturePair
	DerivationPath       string
}

PartiallySignedInput represents an input signed only by some of the relevant parties.

type PartiallySignedTransaction

type PartiallySignedTransaction struct {
	Tx                    *externalapi.DomainTransaction
	PartiallySignedInputs []*PartiallySignedInput
}

PartiallySignedTransaction is a type that is intended to be transferred between multiple parties so each party will be able to sign the transaction before it's fully signed.

func DeserializePartiallySignedTransaction

func DeserializePartiallySignedTransaction(serializedPartiallySignedTransaction []byte) (*PartiallySignedTransaction, error)

DeserializePartiallySignedTransaction deserializes a byte slice into PartiallySignedTransaction.

type PubKeySignaturePair

type PubKeySignaturePair struct {
	ExtendedPublicKey string
	Signature         []byte
}

PubKeySignaturePair is a pair of public key and (potentially) its associated signature

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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