Documentation ¶
Index ¶
- func DeserializeDomainTransaction(serializedTransactionMessage []byte) (*externalapi.DomainTransaction, error)
- func SerializeDomainTransaction(tx *externalapi.DomainTransaction) ([]byte, error)
- func SerializePartiallySignedTransaction(partiallySignedTransaction *PartiallySignedTransaction) ([]byte, error)
- type PartiallySignedInput
- type PartiallySignedTransaction
- type PubKeySignaturePair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeDomainTransaction ¶
func DeserializeDomainTransaction(serializedTransactionMessage []byte) (*externalapi.DomainTransaction, error)
DeserializeDomainTransaction Deserialize a Transaction to an *externalapi.DomainTransaction
func SerializeDomainTransaction ¶
func SerializeDomainTransaction(tx *externalapi.DomainTransaction) ([]byte, error)
SerializeDomainTransaction Serialize a *externalapi.DomainTransaction
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.
func (PartiallySignedInput) Clone ¶
func (psi PartiallySignedInput) Clone() *PartiallySignedInput
Clone creates a deep-clone of this PartiallySignedInput
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.
func (*PartiallySignedTransaction) Clone ¶
func (pst *PartiallySignedTransaction) Clone() *PartiallySignedTransaction
Clone creates a deep-clone of this PartiallySignedTransaction
type PubKeySignaturePair ¶
PubKeySignaturePair is a pair of public key and (potentially) its associated signature
func (PubKeySignaturePair) Clone ¶
func (psp PubKeySignaturePair) Clone() *PubKeySignaturePair
Clone creates a deep-clone of this PubKeySignaturePair