# Functions
Decrypt decrypts (with AES-128) a cyphertext with the provided passphrase.
DeriveKey derives a 32 byte array key from a custom passhprase.
Encrypt encrypts (with AES-128) a plaintext with the provided passphrase.
EstimateTxSize makes an estimation of the virtual size of a transaction for which is required to specify the type of the inputs and outputs according to those of the Bitcoin standard (P2PK, P2PKH, P2MS, P2SH(P2WPKH), P2SH(P2WSH), P2WPKH, P2WSH).
ExtractBlindingDataFromTx unblinds the confidential inputs of the given tx (in pset's base64 format) with the provided blinding keys.
FinalizeAndExtractTransaction attempts to finalize the provided partial transaction and eventually extracts the final transaction and returns it in hex string format, along with its transaction id.
NewMnemonic returns a new mnemonic as a list of words.
NewWallet creates a new wallet holding signing/blinding mnemonic and seed.
NewWalletFromMnemonic generates the sigining and (optionally) blinding seeds from the corresponding mnemonics provided.
ParseDerivationPath converts a derivation path string to the internal binary representation.
# Constants
DefaultBlindingAttempts is the default number of times the blinding of a pset is retried if it fails to generate valid proofs.
MaxBlindingAttempts is the max number of times the blinding of a pset can be repeated in case it fails to generate valid proofs.
MaxHardenedValue is the max value for hardened indexes of BIP32 derivation paths.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultBaseDerivationPath m/84'/0'.
DummyFeeAmount is used as the fee amount to cover when coin-selecting the inputs to use to cover the true fee amount, which, instead, is calculated with more precision from the tx size.
ErrEmptyDerivationPaths ...
ErrEmptyUnspents ...
ErrInvalidAttempts ...
ErrInvalidBlindingMnemonic ...
ErrInvalidChangeAddress ...
ErrInvalidCypherText ...
ErrInvalidDerivationPath ...
ErrInvalidDerivationPathAccount ...
ErrInvalidDerivationPathLength ...
ErrInvalidEntropySize ...
ErrInvalidInBlindingKey ...
ErrInvalidInputAmountBlinder ...
ErrInvalidInputAsset ...
ErrInvalidInputAssetBlinder ...
ErrInvalidInputIndex ...
ErrInvalidMilliSatsPerBytes ...
ErrInvalidOutBlindingKey ...
ErrInvalidOutputAddress ...
ErrInvalidOutputAsset ...
ErrInvalidOutputBlindingKeysLen ...
ErrInvalidPassphrase ...
ErrInvalidSignatures ...
ErrInvalidSigningMnemonic ...
ErrMalformedDerivationPath ...
ErrMissingInBlindingKey ...
ErrMissingLBTCInput ...
ErrMissingLBTCOutput ...
ErrMissingOutBlindingKey ...
ErrNullBlindingMasterKey ...
ErrNullBlindingMnemonic ...
ErrNullChangeDerivationPath ...
ErrNullChangePathsByAsset ...
ErrNullCypherText ...
ErrNullDerivationPath ...
ErrNullInputBlindingData ...
ErrNullInputWitnessUtxo ...
ErrNullNetwork ...
ErrNullOutputDerivationPath ...
ErrNullOutputScript ...
ErrNullPassphrase ...
ErrNullPlainText ...
ErrNullPset ...
ErrNullSigningMasterKey ...
ErrNullSigningMnemonic ...
ErrOutOfRangeDerivationPathAccount ...
ErrReachedMaxBlindingAttempts ...
ErrZeroInputAmount ...
ErrZeroOutputAmount ...
# Structs
No description provided by the author
BlindSwapTransactionWithDataOpts is the struct given to BlindSwapTransactionWithKeys method.
BlindSwapTransactionWithKeysOpts is the struct given to BlindSwapTransactionWithKeys method.
BlindTransactionWithDataOpts is the struct given to BlindTransactionWithData method.
BlindTransactionWithKeysOpts is the struct given to BlindTransactionWithKeys method.
DecryptOpts is the struct given to Decrypt method.
DeriveBlindingKeyPairOpts is the struct given to DeriveBlindingKeyPair method.
DeriveConfidentialAddressOpts is the struct given to DeriveConfidentialAddress method.
DeriveSigningKeyPairOpts is the struct given to DeriveSigningKeyPair method.
EncryptOpts is the struct given to Encrypt method.
ExtendedKeyOpts is the struct given to ExtendedPrivateKey and ExtendedPublicKey methods.
FinalizeAndExtractTransactionOpts is the struct given to FinalizeAndExtractTransaction method.
No description provided by the author
NewWalletFromMnemonicOpts is the struct given to the NewWalletFromMnemonicOpts method.
NewWalletOpts is the struct given to the NewWallet method.
SignInputOpts is the struct given to SignInput method.
SignTransactionOpts is the struct given to SignTransaction method.
UpdateSwapTxOpts is the struct given to UpdateTx method.
UpdateTxOpts is the struct given to UpdateTx method.
UpdateTxResult is the struct returned by UpdateTx method.
Wallet data structure allows to create a new wallet from seed/mnemonic, derive signing and blinding key pairs, and manage those keys to blind and sign transactions.
# Type aliases
DerivationPath is the internal representation of a hierarchical deterministic wallet account.