Documentation ¶
Index ¶
- func AssetHashToBytes(hash string, blinded bool) ([]byte, error)
- type ConfidentialWitnessUtxo
- type Partial
- func (p *Partial) AddBlindedInput(hash string, index uint32, witnessUtxo *ConfidentialWitnessUtxo, ...) error
- func (p *Partial) AddInput(hash string, index uint32, witnessUtxo *WitnessUtxo, nonWitnessUtxo []byte) error
- func (p *Partial) AddOutput(asset string, value uint64, script []byte, blinded bool) error
- func (p *Partial) BlindWithKeys(blindingPrivateKeys [][]byte, blindingPublicKeys [][]byte) error
- func (p *Partial) SignWithPrivateKey(index int, keyPair *keypair.KeyPair) error
- type WitnessUtxo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfidentialWitnessUtxo ¶
type ConfidentialWitnessUtxo struct { AssetCommitment string ValueCommitment string Script []byte Nonce []byte RangeProof []byte SurjectionProof []byte }
ConfidentialWitnessUtxo defines a confidential witness utxo
type Partial ¶
Partial defines a Partial Signed Elements Transaction
func NewPartial ¶
NewPartial returns a Partial instance with an empty pset in Partial.Data and the selected Network
func (*Partial) AddBlindedInput ¶
func (p *Partial) AddBlindedInput(hash string, index uint32, witnessUtxo *ConfidentialWitnessUtxo, nonWitnessUtxo []byte) error
AddBlindedInput adds an utxo to a Partial Signed Elements Transaction
func (*Partial) AddInput ¶
func (p *Partial) AddInput(hash string, index uint32, witnessUtxo *WitnessUtxo, nonWitnessUtxo []byte) error
AddInput adds an utxo to a Partial Signed Elements Transaction
func (*Partial) BlindWithKeys ¶
BlindWithKeys unblinds all the inputs and blinds all the outputs with the provided arrays of keys
type WitnessUtxo ¶
WitnessUtxo defines a witness utxo
Click to show internal directories.
Click to hide internal directories.