wallycore

package module
v0.0.1005 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 4 Imported by: 0

README

libwally-core

Wally is a cross-platform, cross-language collection of useful primitives for cryptocurrency wallets.

Read the API documentation at https://wally.readthedocs.io.

Note that library interfaces may change slightly while the library design matures. Please see the CHANGES file to determine if the API has changed when upgrading.

Please report bugs and submit patches to Our github repository. If you wish to report a security issue, please read Our security reporting guidelines.

Build Status

Platforms

Wally can currently be built for:

  • Linux
  • Android
  • macOS
  • iOS
  • Windows

And can be used from:

  • C and compatible languages which can call C interfaces
  • C++ (see include/wally.hpp for C++ container support)
  • Python 2.7+ or 3.x
  • Java
  • Javascript via node.js or Cordova

Building

$ ./tools/autogen.sh
$ ./configure <options - see below>
$ make
$ make check
Building on macOS

Using homebrew,

$ brew install gnu-sed

If you wish to enable the SWIG interface, you will need install the Java JDK 8 or newer, and install SWIG:

$ brew install swig
configure options
  • --enable-debug. Enables debugging information and disables compiler optimisations (default: no).
  • --enable-export-all. Export all functions from the wally shared library. Ordinarily only API functions are exported. (default: no). Enable this if you want to test the internal functions of the library or are planning to submit patches.
  • --enable-swig-python. Enable the SWIG Python interface. The resulting shared library can be imported from Python using the generated interface file src/swig_python/wallycore/__init__.py. (default: no).
  • --enable-swig-java. Enable the SWIG Java (JNI) interface. After building, see src/swig_java/src/com/blockstream/libwally/Wally.java for the Java interface definition (default: no).
  • --enable-elements. Enables support for Elements features, including Liquid support.
  • --enable-js-wrappers. Enable the Node.js and Cordova Javascript wrappers. This currently requires python to be available at build time (default: no).
  • --enable-coverage. Enables code coverage (default: no) Note that you will need lcov installed to build with this option enabled and generate coverage reports.
  • --disable-shared. Disables building a shared library and builds a static library instead.
$ ./configure --enable-debug --enable-export-all --enable-swig-python --enable-swig-java --enable-coverage
Compiler options

Set CC=clang to use clang for building instead of gcc, when both are installed.

Python

For python development, you can build and install wally using:

$ pip install .

It is suggested you only install this way into a virtualenv while the library is under heavy development.

If you wish to explicitly choose the python version to use, set the PYTHON_VERSION environment variable (to e.g. 2, 2.7, 3 etc) before running pip or (when compiling manually) ./configure.

You can also install the binary wally releases using the released wheel files without having to compile the library, e.g.:

pip install wallycore-0.7.9-cp37-cp37m-linux_x86_64.whl

The script tools/build_python_wheels.sh builds the release files and can be used as an example for your own python projects.

Android

Android builds are currently supported for all Android binary targets using the Android NDK. The script tools/android_helpers.sh can be sourced from the shell or scripts to make it easier to produce builds:

$ export ANDROID_HOME=/opt/android-sdk
$ . ./tools/android_helpers.sh

$ android_get_arch_list
armeabi-v7a arm64-v8a x86 x86_64

# Prepare to build
$ ./tools/cleanup.sh
$ ./tools/autogen.sh

# See the comments in tools/android_helpers.sh for arguments
$ android_build_wally armeabi-v7a $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64 19 "--enable-swig-java"

The script tools/build_android_libraries.sh builds the Android release files and can be used as an example for your own Android projects.

Cleaning

$ ./tools/cleanup.sh

Submitting patches

Please use pull requests on github to submit. Before producing your patch you should format your changes using uncrustify version 0.60 or later. The script ./tools/uncrustify will reformat all C sources in the library as needed, with the currently chosen uncrustify options.

To reformat a single source file, use e.g.:

$ ./tools/uncrustify src/transaction.c

Or to reformat all source files, pass no arguments:

$ ./tools/uncrustify

You should also make sure the existing tests pass and if possible write tests covering any new functionality, following the existing style. You can run the tests via:

$ make check

Generating a coverage report

To generate an HTML coverage report, install lcov and use:

$ ./tools/cleanup.sh
$ ./tools/autogen.sh
$ ./configure --enable-debug --enable-export-all --enable-swig-python --enable-swig-java --enable-js_wrappers --enable-coverage
$ make
$ ./tools/coverage.sh clean
$ make check
$ ./tools/coverage.sh

The coverage report can then be viewed at ./src/lcov/src/index.html. Patches to increase the test coverage are welcome.

Users of libwally-core

Projects and products that are known to depend on or use libwally:

Please note that some of listed projects may be experimental or superseded.

Documentation

Index

Constants

View Source
const AES_BLOCK_LEN int = 16
View Source
const AES_FLAG_DECRYPT int = 2
View Source
const AES_FLAG_ENCRYPT int = 1
View Source
const AES_KEY_LEN_128 int = 16
View Source
const AES_KEY_LEN_192 int = 24
View Source
const AES_KEY_LEN_256 int = 32
View Source
const ASSET_COMMITMENT_LEN int = 33
View Source
const ASSET_GENERATOR_LEN int = 33
View Source
const ASSET_RANGEPROOF_MAX_LEN int = 5134
View Source
const ASSET_TAG_LEN int = 32
View Source
const BASE58_CHECKSUM_LEN int = 4
View Source
const BASE58_FLAG_CHECKSUM int = 0x1
View Source
const BIP32_ENTROPY_LEN_128 int = 16
View Source
const BIP32_ENTROPY_LEN_256 int = 32
View Source
const BIP32_ENTROPY_LEN_512 int = 64
View Source
const BIP32_FLAG_KEY_PRIVATE int = 0x0
View Source
const BIP32_FLAG_KEY_PUBLIC int = 0x1
View Source
const BIP32_FLAG_KEY_TWEAK_SUM int = 0x4
View Source
const BIP32_FLAG_SKIP_HASH int = 0x2
View Source
const BIP32_INITIAL_HARDENED_CHILD int = 0x80000000
View Source
const BIP32_KEY_FINGERPRINT_LEN int = 4
View Source
const BIP32_SERIALIZED_LEN int = 78
View Source
const BIP32_VER_MAIN_PRIVATE int = 0x0488ADE4
View Source
const BIP32_VER_MAIN_PUBLIC int = 0x0488B21E
View Source
const BIP32_VER_TEST_PRIVATE int = 0x04358394
View Source
const BIP32_VER_TEST_PUBLIC int = 0x043587CF
View Source
const BIP39_ENTROPY_LEN_128 int = 16
View Source
const BIP39_ENTROPY_LEN_160 int = 20
View Source
const BIP39_ENTROPY_LEN_192 int = 24
View Source
const BIP39_ENTROPY_LEN_224 int = 28
View Source
const BIP39_ENTROPY_LEN_256 int = 32
View Source
const BIP39_ENTROPY_LEN_288 int = 36
View Source
const BIP39_ENTROPY_LEN_320 int = 40
View Source
const BIP39_SEED_LEN_512 int = 64
View Source
const BIP39_WORDLIST_LEN int = 2048
View Source
const BITCOIN_MESSAGE_FLAG_HASH int = 1
View Source
const BLINDING_FACTOR_LEN int = 32
View Source
const EC_FLAG_ECDSA int = 0x1
View Source
const EC_FLAG_GRIND_R int = 0x4
View Source
const EC_FLAG_RECOVERABLE int = 0x8
View Source
const EC_FLAG_SCHNORR int = 0x2
View Source
const EC_MESSAGE_HASH_LEN int = 32
View Source
const EC_PRIVATE_KEY_LEN int = 32
View Source
const EC_PUBLIC_KEY_LEN int = 33
View Source
const EC_PUBLIC_KEY_UNCOMPRESSED_LEN int = 65
View Source
const EC_SIGNATURE_DER_MAX_LEN int = 72
View Source
const EC_SIGNATURE_DER_MAX_LOW_R_LEN int = 71
View Source
const EC_SIGNATURE_LEN int = 64
View Source
const EC_SIGNATURE_RECOVERABLE_LEN int = 65
View Source
const HASH160_LEN int = 20
View Source
const HMAC_SHA256_LEN int = 32
View Source
const HMAC_SHA512_LEN int = 64
View Source
const OP_0 int = 0x00
View Source
const OP_0NOTEQUAL int = 0x92
View Source
const OP_1 int = 0x51
View Source
const OP_10 int = 0x5a
View Source
const OP_11 int = 0x5b
View Source
const OP_12 int = 0x5c
View Source
const OP_13 int = 0x5d
View Source
const OP_14 int = 0x5e
View Source
const OP_15 int = 0x5f
View Source
const OP_16 int = 0x60
View Source
const OP_1ADD int = 0x8b
View Source
const OP_1NEGATE int = 0x4f
View Source
const OP_1SUB int = 0x8c
View Source
const OP_2 int = 0x52
View Source
const OP_2DIV int = 0x8e
View Source
const OP_2DROP int = 0x6d
View Source
const OP_2DUP int = 0x6e
View Source
const OP_2MUL int = 0x8d
View Source
const OP_2OVER int = 0x70
View Source
const OP_2ROT int = 0x71
View Source
const OP_2SWAP int = 0x72
View Source
const OP_3 int = 0x53
View Source
const OP_3DUP int = 0x6f
View Source
const OP_4 int = 0x54
View Source
const OP_5 int = 0x55
View Source
const OP_6 int = 0x56
View Source
const OP_7 int = 0x57
View Source
const OP_8 int = 0x58
View Source
const OP_9 int = 0x59
View Source
const OP_ABS int = 0x90
View Source
const OP_ADD int = 0x93
View Source
const OP_AND int = 0x84
View Source
const OP_BOOLAND int = 0x9a
View Source
const OP_BOOLOR int = 0x9b
View Source
const OP_CAT int = 0x7e
View Source
const OP_CHECKLOCKTIMEVERIFY int = 0xb1
View Source
const OP_CHECKMULTISIG int = 0xae
View Source
const OP_CHECKMULTISIGVERIFY int = 0xaf
View Source
const OP_CHECKSEQUENCEVERIFY int = 0xb2
View Source
const OP_CHECKSIG int = 0xac
View Source
const OP_CHECKSIGVERIFY int = 0xad
View Source
const OP_CODESEPARATOR int = 0xab
View Source
const OP_DEPTH int = 0x74
View Source
const OP_DIV int = 0x96
View Source
const OP_DROP int = 0x75
View Source
const OP_DUP int = 0x76
View Source
const OP_ELSE int = 0x67
View Source
const OP_ENDIF int = 0x68
View Source
const OP_EQUAL int = 0x87
View Source
const OP_EQUALVERIFY int = 0x88
View Source
const OP_FALSE int = 0x00
View Source
const OP_FROMALTSTACK int = 0x6c
View Source
const OP_GREATERTHAN int = 0xa0
View Source
const OP_GREATERTHANOREQUAL int = 0xa2
View Source
const OP_HASH160 int = 0xa9
View Source
const OP_HASH256 int = 0xaa
View Source
const OP_IF int = 0x63
View Source
const OP_IFDUP int = 0x73
View Source
const OP_INVALIDOPCODE int = 0xff
View Source
const OP_INVERT int = 0x83
View Source
const OP_LEFT int = 0x80
View Source
const OP_LESSTHAN int = 0x9f
View Source
const OP_LESSTHANOREQUAL int = 0xa1
View Source
const OP_LSHIFT int = 0x98
View Source
const OP_MAX int = 0xa4
View Source
const OP_MIN int = 0xa3
View Source
const OP_MOD int = 0x97
View Source
const OP_MUL int = 0x95
View Source
const OP_NEGATE int = 0x8f
View Source
const OP_NIP int = 0x77
View Source
const OP_NOP int = 0x61
View Source
const OP_NOP1 int = 0xb0
View Source
const OP_NOP10 int = 0xb9
View Source
const OP_NOP2 int = 0xb1
View Source
const OP_NOP3 int = 0xb2
View Source
const OP_NOP4 int = 0xb3
View Source
const OP_NOP5 int = 0xb4
View Source
const OP_NOP6 int = 0xb5
View Source
const OP_NOP7 int = 0xb6
View Source
const OP_NOP8 int = 0xb7
View Source
const OP_NOP9 int = 0xb8
View Source
const OP_NOT int = 0x91
View Source
const OP_NOTIF int = 0x64
View Source
const OP_NUMEQUAL int = 0x9c
View Source
const OP_NUMEQUALVERIFY int = 0x9d
View Source
const OP_NUMNOTEQUAL int = 0x9e
View Source
const OP_OR int = 0x85
View Source
const OP_OVER int = 0x78
View Source
const OP_PICK int = 0x79
View Source
const OP_PUSHDATA1 int = 0x4c
View Source
const OP_PUSHDATA2 int = 0x4d
View Source
const OP_PUSHDATA4 int = 0x4e
View Source
const OP_RESERVED int = 0x50
View Source
const OP_RESERVED1 int = 0x89
View Source
const OP_RESERVED2 int = 0x8a
View Source
const OP_RETURN int = 0x6a
View Source
const OP_RIGHT int = 0x81
View Source
const OP_RIPEMD160 int = 0xa6
View Source
const OP_ROLL int = 0x7a
View Source
const OP_ROT int = 0x7b
View Source
const OP_RSHIFT int = 0x99
View Source
const OP_SHA1 int = 0xa7
View Source
const OP_SHA256 int = 0xa8
View Source
const OP_SIZE int = 0x82
View Source
const OP_SUB int = 0x94
View Source
const OP_SUBSTR int = 0x7f
View Source
const OP_SWAP int = 0x7c
View Source
const OP_TOALTSTACK int = 0x6b
View Source
const OP_TRUE int = 0x51
View Source
const OP_TUCK int = 0x7d
View Source
const OP_VER int = 0x62
View Source
const OP_VERIF int = 0x65
View Source
const OP_VERIFY int = 0x69
View Source
const OP_VERNOTIF int = 0x66
View Source
const OP_WITHIN int = 0xa5
View Source
const OP_XOR int = 0x86
View Source
const PBKDF2_HMAC_SHA256_LEN int = 32
View Source
const PBKDF2_HMAC_SHA512_LEN int = 64
View Source
const SHA256_LEN int = 32
View Source
const SHA512_LEN int = 64
View Source
const WALLY_ADDRESS_TYPE_P2PKH int = 0x01
View Source
const WALLY_ADDRESS_TYPE_P2SH_P2WPKH int = 0x02
View Source
const WALLY_ADDRESS_TYPE_P2WPKH int = 0x04
View Source
const WALLY_ADDRESS_VERSION_P2PKH_LIQUID int = 0x39
View Source
const WALLY_ADDRESS_VERSION_P2PKH_LIQUID_REGTEST int = 0xEB
View Source
const WALLY_ADDRESS_VERSION_P2PKH_MAINNET int = 0x00
View Source
const WALLY_ADDRESS_VERSION_P2PKH_TESTNET int = 0x6F
View Source
const WALLY_ADDRESS_VERSION_P2SH_LIQUID int = 0x27
View Source
const WALLY_ADDRESS_VERSION_P2SH_LIQUID_REGTEST int = 0x4B
View Source
const WALLY_ADDRESS_VERSION_P2SH_MAINNET int = 0x05
View Source
const WALLY_ADDRESS_VERSION_P2SH_TESTNET int = 0xC4
View Source
const WALLY_ADDRESS_VERSION_WIF_MAINNET int = 0x80
View Source
const WALLY_ADDRESS_VERSION_WIF_TESTNET int = 0xEF
View Source
const WALLY_BTC_MAX int = 21000000
View Source
const WALLY_CA_PREFIX_LIQUID int = 0x0c
View Source
const WALLY_CA_PREFIX_LIQUID_REGTEST int = 0x04
View Source
const WALLY_EINVAL int = -2
View Source
const WALLY_ENOMEM int = -3
View Source
const WALLY_ERROR int = -1
View Source
const WALLY_MAX_OP_RETURN_LEN int = 80
View Source
const WALLY_NETWORK_BITCOIN_MAINNET int = 0x01
View Source
const WALLY_NETWORK_BITCOIN_TESTNET int = 0x02
View Source
const WALLY_NETWORK_LIQUID int = 0x03
View Source
const WALLY_NETWORK_LIQUID_REGTEST int = 0x04
View Source
const WALLY_OK int = 0
View Source
const WALLY_SATOSHI_PER_BTC int = 100000000
View Source
const WALLY_SCRIPTPUBKEY_OP_RETURN_MAX_LEN int = 83
View Source
const WALLY_SCRIPTPUBKEY_P2PKH_LEN int = 25
View Source
const WALLY_SCRIPTPUBKEY_P2SH_LEN int = 23
View Source
const WALLY_SCRIPTPUBKEY_P2WPKH_LEN int = 22
View Source
const WALLY_SCRIPTPUBKEY_P2WSH_LEN int = 34
View Source
const WALLY_SCRIPTSIG_P2PKH_MAX_LEN int = 140
View Source
const WALLY_SCRIPT_AS_PUSH int = 0x4
View Source
const WALLY_SCRIPT_HASH160 int = 0x1
View Source
const WALLY_SCRIPT_MULTISIG_SORTED int = 0x8
View Source
const WALLY_SCRIPT_SHA256 int = 0x2
View Source
const WALLY_SCRIPT_TYPE_MULTISIG int = 0x20
View Source
const WALLY_SCRIPT_TYPE_OP_RETURN int = 0x1
View Source
const WALLY_SCRIPT_TYPE_P2PKH int = 0x2
View Source
const WALLY_SCRIPT_TYPE_P2SH int = 0x4
View Source
const WALLY_SCRIPT_TYPE_P2WPKH int = 0x8
View Source
const WALLY_SCRIPT_TYPE_P2WSH int = 0x10
View Source
const WALLY_SCRIPT_TYPE_UNKNOWN int = 0x0
View Source
const WALLY_SECP_RANDOMIZE_LEN int = 32
View Source
const WALLY_SIGHASH_ALL int = 0x01
View Source
const WALLY_SIGHASH_ANYONECANPAY int = 0x80
View Source
const WALLY_SIGHASH_FORKID int = 0x40
View Source
const WALLY_SIGHASH_NONE int = 0x02
View Source
const WALLY_SIGHASH_SINGLE int = 0x03
View Source
const WALLY_TXHASH_LEN int = 32
View Source
const WALLY_TX_ASSET_CT_ASSET_LEN int = 33
View Source
const WALLY_TX_ASSET_CT_ASSET_PREFIX_A int = 10
View Source
const WALLY_TX_ASSET_CT_ASSET_PREFIX_B int = 11
View Source
const WALLY_TX_ASSET_CT_LEN int = 33
View Source
const WALLY_TX_ASSET_CT_NONCE_LEN int = 33
View Source
const WALLY_TX_ASSET_CT_NONCE_PREFIX_A int = 2
View Source
const WALLY_TX_ASSET_CT_NONCE_PREFIX_B int = 3
View Source
const WALLY_TX_ASSET_CT_VALUE_LEN int = 33
View Source
const WALLY_TX_ASSET_CT_VALUE_PREFIX_A int = 8
View Source
const WALLY_TX_ASSET_CT_VALUE_PREFIX_B int = 9
View Source
const WALLY_TX_ASSET_CT_VALUE_UNBLIND_LEN int = 9
View Source
const WALLY_TX_ASSET_TAG_LEN int = 32
View Source
const WALLY_TX_DUMMY_NULL int = 0x1
View Source
const WALLY_TX_DUMMY_SIG int = 0x2
View Source
const WALLY_TX_DUMMY_SIG_LOW_R int = 0x4
View Source
const WALLY_TX_FLAG_ALLOW_PARTIAL int = 0x4
View Source
const WALLY_TX_FLAG_BLINDED_INITIAL_ISSUANCE int = 0x1
View Source
const WALLY_TX_FLAG_USE_ELEMENTS int = 0x2
View Source
const WALLY_TX_FLAG_USE_WITNESS int = 0x1
View Source
const WALLY_TX_INDEX_MASK int = 0x3fffffff
View Source
const WALLY_TX_IS_COINBASE int = 8
View Source
const WALLY_TX_IS_ELEMENTS int = 1
View Source
const WALLY_TX_IS_ISSUANCE int = 2
View Source
const WALLY_TX_IS_PEGIN int = 4
View Source
const WALLY_TX_SEQUENCE_FINAL int = 0xffffffff
View Source
const WALLY_TX_VERSION_1 int = 1
View Source
const WALLY_TX_VERSION_2 int = 2
View Source
const WALLY_WIF_FLAG_COMPRESSED int = 0x0
View Source
const WALLY_WIF_FLAG_UNCOMPRESSED int = 0x1
View Source
const WALLY_WITNESSSCRIPT_MAX_LEN int = 35

Variables

View Source
var BITCOIN_MESSAGE_MAX_LEN int = _swig_getBITCOIN_MESSAGE_MAX_LEN()
View Source
var EC_FLAGS_ALL int = _swig_getEC_FLAGS_ALL()
View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}
View Source
var WALLY_TX_ISSUANCE_FLAG int = _swig_getWALLY_TX_ISSUANCE_FLAG()
View Source
var WALLY_TX_PEGIN_FLAG int = _swig_getWALLY_TX_PEGIN_FLAG()

Functions

func Bip32KeySerialize

func Bip32KeySerialize(extKey *ExtKey, flags uint32) (extKeyBytes [BIP32_SERIALIZED_LEN]byte)

*

  • Serialize an extended key to memory using BIP32 format. *
  • :param extKey: The extended key to serialize.
  • :param flags: BIP32_FLAG_KEY_ Flags indicating which key to serialize. You can not *| serialize a private extended key from a public extended key.

func Bip32KeyToBase58

func Bip32KeyToBase58(extKey *ExtKey, flags uint32) (xKeyBase58 string)

*

  • Convert an extended key to base58. *
  • :param extKey: The extended key.
  • :param flags: BIP32_FLAG_KEY_ Flags indicating which key to serialize. You can not *| serialize a private extended key from a public extended key.

func Bip32_key_free

func Bip32_key_free(arg1 Ext_key) (_swig_ret int)

func Bip32_key_from_base58

func Bip32_key_from_base58(arg1 string, arg2 Ext_key) (_swig_ret int)

func Bip32_key_from_parent

func Bip32_key_from_parent(arg1 Ext_key, arg2 Uint32_t, arg3 Uint32_t, arg4 Ext_key) (_swig_ret int)

func Bip32_key_from_parent_path

func Bip32_key_from_parent_path(arg1 Ext_key, arg2 Uint32_t, arg3 int64, arg4 Uint32_t, arg5 Ext_key) (_swig_ret int)

func Bip32_key_from_seed

func Bip32_key_from_seed(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 Ext_key) (_swig_ret int)

func Bip32_key_get_fingerprint added in v0.0.1005

func Bip32_key_get_fingerprint(arg1 Ext_key, arg2 *byte, arg3 int64) (_swig_ret int)

func Bip32_key_init_alloc

func Bip32_key_init_alloc(arg1 Uint32_t, arg2 Uint32_t, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 Ext_key) (_swig_ret int)

func Bip32_key_serialize

func Bip32_key_serialize(arg1 Ext_key, arg2 Uint32_t, arg3 *byte, arg4 int64) (_swig_ret int)

func Bip32_key_strip_private_key

func Bip32_key_strip_private_key(arg1 Ext_key) (_swig_ret int)

func Bip32_key_to_base58

func Bip32_key_to_base58(arg1 Ext_key, arg2 Uint32_t, arg3 *string) (_swig_ret int)

func Bip32_key_unserialize

func Bip32_key_unserialize(arg1 *byte, arg2 int64, arg3 Ext_key) (_swig_ret int)

func Bip32_key_with_tweak_from_parent_path_alloc

func Bip32_key_with_tweak_from_parent_path_alloc(arg1 Ext_key, arg2 Uint32_t, arg3 int64, arg4 Uint32_t, arg5 Ext_key) (_swig_ret int)

func Bip39_get_languages

func Bip39_get_languages(arg1 *string) (_swig_ret int)

func Bip39_get_word

func Bip39_get_word(arg1 Words, arg2 int64, arg3 *string) (_swig_ret int)

func Bip39_get_wordlist

func Bip39_get_wordlist(arg1 string, arg2 Words) (_swig_ret int)

func Bip39_mnemonic_from_bytes

func Bip39_mnemonic_from_bytes(arg1 Words, arg2 *byte, arg3 int64, arg4 *string) (_swig_ret int)

func Bip39_mnemonic_to_bytes

func Bip39_mnemonic_to_bytes(arg1 Words, arg2 string, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Bip39_mnemonic_to_seed

func Bip39_mnemonic_to_seed(arg1 string, arg2 string, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Bip39_mnemonic_validate

func Bip39_mnemonic_validate(arg1 Words, arg2 string) (_swig_ret int)

func Swig_free

func Swig_free(arg1 uintptr)

func Swig_malloc

func Swig_malloc(arg1 int) (_swig_ret uintptr)

func WallyAssetUnblind

func WallyAssetUnblind(
	nonce []byte,
	blindPrivKey []byte,
	proof []byte,
	valueCommitment []byte,
	extra []byte,
	assetCommitment []byte,
) (
	asset [32]byte,
	assetBlindFactor [32]byte,
	value uint64,
	valueBlindFactor [32]byte,
	ret int,
)

*

  • asset is little endian byte order

func WallyBase58FromBytes

func WallyBase58FromBytes(bytes []byte, flags uint32) (base58 string, ret int)

* * Create a base 58 encoded string representing binary data. * * :param bytes: Binary data to convert. * :param flags: Pass “BASE58_FLAG_CHECKSUM“ if “bytes“ should have a *| checksum calculated and appended before converting to base 58.

func WallyBase58ToBytes

func WallyBase58ToBytes(base58 string, flags uint32, byteLength int) ([]byte, int)

*

  • Decode a base 58 encoded string back into into binary data. *
  • :param str_in: Base 58 encoded string to decode.
  • :param flags: Pass “BASE58_FLAG_CHECKSUM“ if “bytes_out“ should have a *| checksum validated and removed before returning. In this case, “len“ *| must contain an extra “BASE58_CHECKSUM_LEN“ bytes to calculate the *| checksum into. The returned length will not include the checksum.
  • :param len: The length of “bytes_out“ in bytes.

func WallyConfidentialAddrFromAddr

func WallyConfidentialAddrFromAddr(addrBase58 string, prefix uint32, blindPubKey [EC_PUBLIC_KEY_LEN]byte) (confidentialAddress string, ret int)

*

  • Create a confidential address from an address and blinding public key. *
  • :param address: The base58 encoded address to make confidential.
  • :param prefix: The confidential address prefix byte, e.g. WALLY_CA_PREFIX_LIQUID.
  • :param pub_key: The blinding public key to associate with “address“.

func WallyConfidentialAddrToAddr

func WallyConfidentialAddrToAddr(confidentialAddress string, prefix uint32) (address string, ret int)

*

  • Extract the address from a confidential address. *
  • :param address: The base58 encoded confidential address to extract the address from.
  • :param prefix: The confidential address prefix byte, e.g. WALLY_CA_PREFIX_LIQUID.

func WallyConfidentialAddrToECPublicKey

func WallyConfidentialAddrToECPublicKey(confidentialAddress string, prefix uint32) (pubKey [EC_PUBLIC_KEY_LEN]byte, ret int)

*

  • Extract the blinding public key from a confidential address. *
  • :param address: The base58 encoded confidential address to extract the public key from.
  • :param prefix: The confidential address prefix byte, e.g. WALLY_CA_PREFIX_LIQUID.

func WallyEcPublicKeyFromPrivateKey

func WallyEcPublicKeyFromPrivateKey(privkey [EC_PRIVATE_KEY_LEN]byte) (pubkey [EC_PUBLIC_KEY_LEN]byte, ret int)

*

  • Create a public key from a private key. *
  • :param priv_key: The private key to create a public key from.

func WallyEcSigFromBytes

func WallyEcSigFromBytes(privkey [EC_PRIVATE_KEY_LEN]byte, message []byte, flags uint32) (signature [EC_SIGNATURE_LEN]byte, ret int)

*

  • Sign a message hash with a private key, producing a compact signature. *
  • :param priv_key: The private key to sign with.
  • :param bytes: The message hash to sign.
  • :param flags: EC_FLAG_ flag values indicating desired behavior.

func WallyEcSigFromDer

func WallyEcSigFromDer(sigDer []byte) (signature [EC_SIGNATURE_LEN]byte, ret int)

*

  • Convert a DER encoded signature to a compact signature. *
  • :param bytes: The DER encoded signature to convert.

func WallyEcSigNormalize

func WallyEcSigNormalize(signature [EC_SIGNATURE_LEN]byte) (lowS [EC_SIGNATURE_LEN]byte, ret int)

*

  • Convert a signature to low-s form. *
  • :param sig: The compact signature to convert.

func WallyEcSigToDer

func WallyEcSigToDer(signature [EC_SIGNATURE_LEN]byte) (der [EC_SIGNATURE_DER_MAX_LEN]byte, ret int)

*

  • Convert a compact signature to DER encoding. *
  • :param sig: The compact signature to convert.

func WallyHash160

func WallyHash160(bytes []byte) (hash160 [HASH160_LEN]byte, ret int)

*

  • RIPEMD-160(SHA-256(m)) *
  • :param bytes: The message to hash

func WallyScriptpubkeyGetType

func WallyScriptpubkeyGetType(scriptPubKey []byte) (scriptType int64, ret int)

*

  • Determine the type of a scriptPubkey script. *
  • :param bytes: Bytes of the scriptPubkey.

func WallyScriptpubkeyMultisigFromBytes

func WallyScriptpubkeyMultisigFromBytes(pubKeys []byte, threshold uint32, flags uint32) (redeemScript []byte, ret int)

*

  • Create a multisig scriptPubkey. *
  • :param bytes: Compressed public keys to create a scriptPubkey from.
  • :param threshold: The number of signatures that must match to satisfy the script.
  • :param flags: Must be zero.

func WallyScriptpubkeyP2pkhFromBytes

func WallyScriptpubkeyP2pkhFromBytes(pubKey []byte, flags uint32) (scriptBytes [WALLY_SCRIPTPUBKEY_P2PKH_LEN]byte, ret int)

*

  • Create a P2PKH scriptPubkey. *
  • :param pubKey: Bytes to create a scriptPubkey for.
  • :param flags: “WALLY_SCRIPT_HASH160“ or 0.

func WallyScriptpubkeyP2shFromBytes

func WallyScriptpubkeyP2shFromBytes(redeemScript []byte, flags uint32) (scriptBytes [WALLY_SCRIPTPUBKEY_P2SH_LEN]byte, ret int)

*

  • Create a P2SH scriptPubkey. *
  • :param bytes: Bytes to create a scriptPubkey for.
  • :param flags: “WALLY_SCRIPT_HASH160“ or 0.

func WallyScriptsigMultisigFromBytes

func WallyScriptsigMultisigFromBytes(redeemScript []byte, signatures [][EC_SIGNATURE_LEN]byte, sighashes []uint32, flags uint32) (scriptSig []byte, ret int)

*

  • Create a multisig scriptSig. *
  • :param script: The redeem script this scriptSig provides signatures for.
  • :param bytes: Compact signatures to place in the scriptSig.
  • :param sighash: WALLY_SIGHASH_ flags for each signature in “bytes“.
  • :param flags: Must be zero.

func WallyScriptsigP2pkhFromSig

func WallyScriptsigP2pkhFromSig(pubkey []byte, sig [EC_SIGNATURE_LEN]byte, sighash uint32) (scriptSig []byte, ret int)

*

  • Create a P2PKH scriptSig from a pubkey and compact signature. *
  • This function creates the scriptSig by converting “sig“ to DER
  • encoding, appending the given sighash, then calling `wally_scriptsig_p2pkh_from_der`. *
  • :param pub_key: The public key to create a scriptSig with.
  • :param sig: The compact signature to create a scriptSig with.
  • :param sighash: WALLY_SIGHASH_ flags specifying the type of signature desired.

func WallyTxAddRawInput

func WallyTxAddRawInput(
	wallyTx *WallyTx,
	txhash []byte,
	index uint32,
	seq uint32,
	script []byte,
	witness *WallyTxWitnessStack,
	flags uint32) (ret int)

*

  • Add a transaction input to a transaction. *
  • :param tx: The transaction to add the input to.
  • :param txhash: The transaction hash of the transaction this input comes from.
  • :param index: The zero-based index of the transaction output in “txhash“ that *| this input comes from.
  • :param sequence: The sequence number for the input.
  • :param script: The scriptSig for the input.
  • :param witness: The witness stack for the input, or NULL if no witness is present.
  • :param flags: Flags controlling script creation. Must be 0.

func WallyTxGetElementsSignatureHash

func WallyTxGetElementsSignatureHash(
	tx *WallyTx,
	index int64,
	scriptSig []byte,
	value []byte,
	sighash uint32,
	flags uint32) (signatureHash [SHA256_LEN]byte, ret int)

*

  • Create a Elements transaction for signing and return its hash. *
  • :param tx: The transaction to generate the signature hash from.
  • :param index: The input index of the input being signed for.
  • :param script: The scriptSig for the input represented by “index“. *| if p2sh, set redeemscript
  • :param value: The (confidential) value spent by the input being signed for. Only used if *| flags includes WALLY_TX_FLAG_USE_WITNESS, pass NULL otherwise.
  • :param sighash: WALLY_SIGHASH_ flags specifying the type of signature desired.
  • :param flags: WALLY_TX_FLAG_USE_WITNESS to generate a BIP 143 signature, or 0 *| to generate a pre-segwit Bitcoin signature.

func WallyTxGetVsize

func WallyTxGetVsize(wallyTx *WallyTx) (vsize int64, ret int)

*

  • Get the virtual size of a transaction. *
  • :param tx: The transaction to get the virtual size of.

func WallyTxSetInputScript

func WallyTxSetInputScript(wallyTx *WallyTx, index int64, script []byte) (ret int)

*

  • Set the scriptsig for an input in a transaction. *
  • :param tx: The transaction to operate on.
  • :param index: The zero-based index of the input to set the script on.
  • :param script: The scriptSig for the input.
  • :param script_len: Size of “script“ in bytes.

func WallyTxToBytes

func WallyTxToBytes(wallyTx *WallyTx, flags uint32) (txbytes []byte, ret int)

*

  • Serialize a transaction to bytes. *
  • :param tx: The transaction to serialize.
  • :param flags: WALLY_TX_FLAG_ Flags controlling serialization options.
  • :param bytes_out: Destination for the serialized transaction.
  • :param len: Size of “bytes_out“ in bytes.
  • :param written: Destination for the length of the serialized transaction.

func WallyTxToHex

func WallyTxToHex(wallyTx *WallyTx, flags uint32) (hex string, ret int)

func WallyWifToBytes

func WallyWifToBytes(wif string, prefix uint32, flags uint32) (privkey [EC_PRIVATE_KEY_LEN]byte, ret int)

*

  • Convert a Wallet Import Format string to a private key. *
  • :param wif: Private key in Wallet Import Format.
  • :param prefix: Prefix byte to use, e.g. 0x80, 0xef.
  • :param flags: Pass “WALLY_WIF_FLAG_COMPRESSED“ if the corresponding pubkey is compressed, *| otherwise “WALLY_WIF_FLAG_UNCOMPRESSED“.

func Wally_addr_segwit_from_bytes

func Wally_addr_segwit_from_bytes(arg1 *byte, arg2 int64, arg3 string, arg4 Uint32_t, arg5 *string) (_swig_ret int)

func Wally_addr_segwit_to_bytes

func Wally_addr_segwit_to_bytes(arg1 string, arg2 string, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_address_to_scriptpubkey

func Wally_address_to_scriptpubkey(arg1 string, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_aes

func Wally_aes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 *byte, arg7 int64) (_swig_ret int)

func Wally_aes_cbc

func Wally_aes_cbc(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 Uint32_t, arg8 *byte, arg9 int64, arg10 *int64) (_swig_ret int)

func Wally_asset_blinding_key_from_seed

func Wally_asset_blinding_key_from_seed(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_asset_blinding_key_to_ec_private_key

func Wally_asset_blinding_key_to_ec_private_key(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_asset_final_vbf

func Wally_asset_final_vbf(arg1 Uint64_t, arg2 int64, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64) (_swig_ret int)

func Wally_asset_generator_from_bytes

func Wally_asset_generator_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_asset_pak_whitelistproof

func Wally_asset_pak_whitelistproof(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 *int64) (_swig_ret int)

func Wally_asset_pak_whitelistproof_size

func Wally_asset_pak_whitelistproof_size(arg1 int64, arg2 *int64) (_swig_ret int)

func Wally_asset_rangeproof

func Wally_asset_rangeproof(arg1 Uint64_t, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 *byte, arg15 int64, arg16 *byte, arg17 int64, arg18 Uint64_t, arg19 int, arg20 int, arg21 *byte, arg22 int64, arg23 *int64) (_swig_ret int)

func Wally_asset_rangeproof_with_nonce

func Wally_asset_rangeproof_with_nonce(arg1 Uint64_t, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 *byte, arg15 int64, arg16 Uint64_t, arg17 int, arg18 int, arg19 *byte, arg20 int64, arg21 *int64) (_swig_ret int)

func Wally_asset_surjectionproof

func Wally_asset_surjectionproof(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 *byte, arg14 int64, arg15 *byte, arg16 int64, arg17 *int64) (_swig_ret int)

func Wally_asset_surjectionproof_size

func Wally_asset_surjectionproof_size(arg1 int64, arg2 *int64) (_swig_ret int)

func Wally_asset_unblind

func Wally_asset_unblind(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 *byte, arg14 int64, arg15 *byte, arg16 int64, arg17 *byte, arg18 int64, arg19 Uint64_t) (_swig_ret int)

func Wally_asset_unblind_with_nonce

func Wally_asset_unblind_with_nonce(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 *byte, arg14 int64, arg15 *byte, arg16 int64, arg17 Uint64_t) (_swig_ret int)

func Wally_asset_value_commitment

func Wally_asset_value_commitment(arg1 Uint64_t, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64) (_swig_ret int)

func Wally_base58_from_bytes

func Wally_base58_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *string) (_swig_ret int)

func Wally_base58_get_length

func Wally_base58_get_length(arg1 string, arg2 *int64) (_swig_ret int)

func Wally_base58_to_bytes

func Wally_base58_to_bytes(arg1 string, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_bip32_key_to_addr_segwit

func Wally_bip32_key_to_addr_segwit(arg1 Ext_key, arg2 string, arg3 Uint32_t, arg4 *string) (_swig_ret int)

func Wally_bip32_key_to_address

func Wally_bip32_key_to_address(arg1 Ext_key, arg2 Uint32_t, arg3 Uint32_t, arg4 *string) (_swig_ret int)

func Wally_bzero

func Wally_bzero(arg1 uintptr, arg2 int64) (_swig_ret int)

func Wally_cleanup

func Wally_cleanup(arg1 Uint32_t) (_swig_ret int)

func Wally_confidential_addr_from_addr

func Wally_confidential_addr_from_addr(arg1 string, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *string) (_swig_ret int)

func Wally_confidential_addr_from_addr_segwit

func Wally_confidential_addr_from_addr_segwit(arg1 string, arg2 string, arg3 string, arg4 *byte, arg5 int64, arg6 *string) (_swig_ret int)

func Wally_confidential_addr_segwit_to_ec_public_key

func Wally_confidential_addr_segwit_to_ec_public_key(arg1 string, arg2 string, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_confidential_addr_to_addr

func Wally_confidential_addr_to_addr(arg1 string, arg2 Uint32_t, arg3 *string) (_swig_ret int)

func Wally_confidential_addr_to_addr_segwit

func Wally_confidential_addr_to_addr_segwit(arg1 string, arg2 string, arg3 string, arg4 *string) (_swig_ret int)

func Wally_confidential_addr_to_ec_public_key

func Wally_confidential_addr_to_ec_public_key(arg1 string, arg2 Uint32_t, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_private_key_verify

func Wally_ec_private_key_verify(arg1 *byte, arg2 int64) (_swig_ret int)

func Wally_ec_public_key_decompress

func Wally_ec_public_key_decompress(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_public_key_from_private_key

func Wally_ec_public_key_from_private_key(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_public_key_negate

func Wally_ec_public_key_negate(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_public_key_verify

func Wally_ec_public_key_verify(arg1 *byte, arg2 int64) (_swig_ret int)

func Wally_ec_sig_from_bytes

func Wally_ec_sig_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 *byte, arg7 int64) (_swig_ret int)

func Wally_ec_sig_from_der

func Wally_ec_sig_from_der(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_sig_normalize

func Wally_ec_sig_normalize(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_ec_sig_to_der

func Wally_ec_sig_to_der(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_ec_sig_to_public_key

func Wally_ec_sig_to_public_key(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_ec_sig_verify

func Wally_ec_sig_verify(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 *byte, arg7 int64) (_swig_ret int)

func Wally_ecdh

func Wally_ecdh(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_elements_pegin_contract_script_from_bytes

func Wally_elements_pegin_contract_script_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 *byte, arg7 int64, arg8 *int64) (_swig_ret int)

func Wally_elements_pegout_script_from_bytes

func Wally_elements_pegout_script_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 Uint32_t, arg10 *byte, arg11 int64, arg12 *int64) (_swig_ret int)

func Wally_elements_pegout_script_size added in v0.0.1005

func Wally_elements_pegout_script_size(arg1 int64, arg2 int64, arg3 int64, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_format_bitcoin_message

func Wally_format_bitcoin_message(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_free_string

func Wally_free_string(arg1 string) (_swig_ret int)

func Wally_hash160

func Wally_hash160(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_hex_from_bytes

func Wally_hex_from_bytes(arg1 *byte, arg2 int64, arg3 *string) (_swig_ret int)

func Wally_hex_to_bytes

func Wally_hex_to_bytes(arg1 string, arg2 *byte, arg3 int64, arg4 *int64) (_swig_ret int)

func Wally_hmac_sha256

func Wally_hmac_sha256(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_hmac_sha512

func Wally_hmac_sha512(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64) (_swig_ret int)

func Wally_init

func Wally_init(arg1 Uint32_t) (_swig_ret int)

func Wally_is_elements_build

func Wally_is_elements_build(arg1 *int64) (_swig_ret int)

func Wally_pbkdf2_hmac_sha256

func Wally_pbkdf2_hmac_sha256(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Uint32_t, arg7 *byte, arg8 int64) (_swig_ret int)

func Wally_pbkdf2_hmac_sha512

func Wally_pbkdf2_hmac_sha512(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Uint32_t, arg7 *byte, arg8 int64) (_swig_ret int)

func Wally_script_push_from_bytes

func Wally_script_push_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_scriptpubkey_csv_2of2_then_1_from_bytes

func Wally_scriptpubkey_csv_2of2_then_1_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 *int64) (_swig_ret int)

func Wally_scriptpubkey_csv_2of2_then_1_from_bytes_opt added in v0.0.1005

func Wally_scriptpubkey_csv_2of2_then_1_from_bytes_opt(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 *int64) (_swig_ret int)

func Wally_scriptpubkey_csv_2of3_then_2_from_bytes

func Wally_scriptpubkey_csv_2of3_then_2_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 *int64) (_swig_ret int)

func Wally_scriptpubkey_get_type

func Wally_scriptpubkey_get_type(arg1 *byte, arg2 int64, arg3 *int64) (_swig_ret int)

func Wally_scriptpubkey_multisig_from_bytes

func Wally_scriptpubkey_multisig_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 *int64) (_swig_ret int)

func Wally_scriptpubkey_op_return_from_bytes

func Wally_scriptpubkey_op_return_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_scriptpubkey_p2pkh_from_bytes

func Wally_scriptpubkey_p2pkh_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_scriptpubkey_p2sh_from_bytes

func Wally_scriptpubkey_p2sh_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

func Wally_scriptpubkey_to_address added in v0.0.1005

func Wally_scriptpubkey_to_address(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *string) (_swig_ret int)

func Wally_scriptsig_multisig_from_bytes

func Wally_scriptsig_multisig_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 int64, arg7 Uint32_t, arg8 *byte, arg9 int64, arg10 *int64) (_swig_ret int)

func Wally_scriptsig_p2pkh_from_der

func Wally_scriptsig_p2pkh_from_der(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *int64) (_swig_ret int)

func Wally_scriptsig_p2pkh_from_sig

func Wally_scriptsig_p2pkh_from_sig(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 *byte, arg7 int64, arg8 *int64) (_swig_ret int)

func Wally_scrypt

func Wally_scrypt(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Uint32_t, arg7 Uint32_t, arg8 *byte, arg9 int64) (_swig_ret int)

func Wally_secp_randomize

func Wally_secp_randomize(arg1 *byte, arg2 int64) (_swig_ret int)

func Wally_sha256

func Wally_sha256(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_sha256_midstate

func Wally_sha256_midstate(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_sha256d

func Wally_sha256d(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_sha512

func Wally_sha512(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_tx_add_elements_raw_input

func Wally_tx_add_elements_raw_input(arg1 Wally_tx, arg2 *byte, arg3 int64, arg4 Uint32_t, arg5 Uint32_t, arg6 *byte, arg7 int64, arg8 Wally_tx_witness_stack, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 *byte, arg14 int64, arg15 *byte, arg16 int64, arg17 *byte, arg18 int64, arg19 *byte, arg20 int64, arg21 Wally_tx_witness_stack, arg22 Uint32_t) (_swig_ret int)

func Wally_tx_add_elements_raw_input_at added in v0.0.1005

func Wally_tx_add_elements_raw_input_at(arg1 Wally_tx, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Uint32_t, arg7 *byte, arg8 int64, arg9 Wally_tx_witness_stack, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 *byte, arg15 int64, arg16 *byte, arg17 int64, arg18 *byte, arg19 int64, arg20 *byte, arg21 int64, arg22 Wally_tx_witness_stack, arg23 Uint32_t) (_swig_ret int)

func Wally_tx_add_elements_raw_output

func Wally_tx_add_elements_raw_output(arg1 Wally_tx, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 Uint32_t) (_swig_ret int)

func Wally_tx_add_elements_raw_output_at added in v0.0.1005

func Wally_tx_add_elements_raw_output_at(arg1 Wally_tx, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 *byte, arg14 int64, arg15 Uint32_t) (_swig_ret int)

func Wally_tx_add_input

func Wally_tx_add_input(arg1 Wally_tx, arg2 Wally_tx_input) (_swig_ret int)

func Wally_tx_add_input_at added in v0.0.1005

func Wally_tx_add_input_at(arg1 Wally_tx, arg2 Uint32_t, arg3 Wally_tx_input) (_swig_ret int)

func Wally_tx_add_output

func Wally_tx_add_output(arg1 Wally_tx, arg2 Wally_tx_output) (_swig_ret int)

func Wally_tx_add_output_at added in v0.0.1005

func Wally_tx_add_output_at(arg1 Wally_tx, arg2 Uint32_t, arg3 Wally_tx_output) (_swig_ret int)

func Wally_tx_add_raw_input

func Wally_tx_add_raw_input(arg1 Wally_tx, arg2 *byte, arg3 int64, arg4 Uint32_t, arg5 Uint32_t, arg6 *byte, arg7 int64, arg8 Wally_tx_witness_stack, arg9 Uint32_t) (_swig_ret int)

func Wally_tx_add_raw_input_at added in v0.0.1005

func Wally_tx_add_raw_input_at(arg1 Wally_tx, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Uint32_t, arg7 *byte, arg8 int64, arg9 Wally_tx_witness_stack, arg10 Uint32_t) (_swig_ret int)

func Wally_tx_add_raw_output

func Wally_tx_add_raw_output(arg1 Wally_tx, arg2 Uint64_t, arg3 *byte, arg4 int64, arg5 Uint32_t) (_swig_ret int)

func Wally_tx_add_raw_output_at added in v0.0.1005

func Wally_tx_add_raw_output_at(arg1 Wally_tx, arg2 Uint32_t, arg3 Uint64_t, arg4 *byte, arg5 int64, arg6 Uint32_t) (_swig_ret int)

func Wally_tx_clone_alloc added in v0.0.1005

func Wally_tx_clone_alloc(arg1 Wally_tx, arg2 Uint32_t, arg3 Wally_tx) (_swig_ret int)

func Wally_tx_confidential_value_from_satoshi

func Wally_tx_confidential_value_from_satoshi(arg1 Uint64_t, arg2 *byte, arg3 int64) (_swig_ret int)

func Wally_tx_confidential_value_to_satoshi

func Wally_tx_confidential_value_to_satoshi(arg1 *byte, arg2 int64, arg3 Uint64_t) (_swig_ret int)

func Wally_tx_elements_input_init_alloc

func Wally_tx_elements_input_init_alloc(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 Wally_tx_witness_stack, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64, arg14 *byte, arg15 int64, arg16 *byte, arg17 int64, arg18 *byte, arg19 int64, arg20 Wally_tx_witness_stack, arg21 Wally_tx_input) (_swig_ret int)

func Wally_tx_elements_input_is_pegin

func Wally_tx_elements_input_is_pegin(arg1 Wally_tx_input, arg2 *int64) (_swig_ret int)

func Wally_tx_elements_input_issuance_free

func Wally_tx_elements_input_issuance_free(arg1 Wally_tx_input) (_swig_ret int)

func Wally_tx_elements_input_issuance_set

func Wally_tx_elements_input_issuance_set(arg1 Wally_tx_input, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64, arg12 *byte, arg13 int64) (_swig_ret int)

func Wally_tx_elements_issuance_calculate_asset

func Wally_tx_elements_issuance_calculate_asset(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_tx_elements_issuance_calculate_reissuance_token

func Wally_tx_elements_issuance_calculate_reissuance_token(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64) (_swig_ret int)

func Wally_tx_elements_issuance_generate_entropy

func Wally_tx_elements_issuance_generate_entropy(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64) (_swig_ret int)

func Wally_tx_elements_output_commitment_free

func Wally_tx_elements_output_commitment_free(arg1 Wally_tx_output) (_swig_ret int)

func Wally_tx_elements_output_commitment_set

func Wally_tx_elements_output_commitment_set(arg1 Wally_tx_output, arg2 *byte, arg3 int64, arg4 *byte, arg5 int64, arg6 *byte, arg7 int64, arg8 *byte, arg9 int64, arg10 *byte, arg11 int64) (_swig_ret int)

func Wally_tx_elements_output_init_alloc

func Wally_tx_elements_output_init_alloc(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 *byte, arg8 int64, arg9 *byte, arg10 int64, arg11 *byte, arg12 int64, arg13 Wally_tx_output) (_swig_ret int)

func Wally_tx_free

func Wally_tx_free(arg1 Wally_tx) (_swig_ret int)

func Wally_tx_from_bytes

func Wally_tx_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Wally_tx) (_swig_ret int)

func Wally_tx_from_hex

func Wally_tx_from_hex(arg1 string, arg2 Uint32_t, arg3 Wally_tx) (_swig_ret int)

func Wally_tx_get_btc_signature_hash

func Wally_tx_get_btc_signature_hash(arg1 Wally_tx, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint64_t, arg6 Uint32_t, arg7 Uint32_t, arg8 *byte, arg9 int64) (_swig_ret int)

func Wally_tx_get_elements_signature_hash

func Wally_tx_get_elements_signature_hash(arg1 Wally_tx, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 Uint32_t, arg8 Uint32_t, arg9 *byte, arg10 int64) (_swig_ret int)

func Wally_tx_get_length

func Wally_tx_get_length(arg1 Wally_tx, arg2 Uint32_t, arg3 *int64) (_swig_ret int)

func Wally_tx_get_signature_hash

func Wally_tx_get_signature_hash(arg1 Wally_tx, arg2 int64, arg3 *byte, arg4 int64, arg5 *byte, arg6 int64, arg7 Uint32_t, arg8 Uint64_t, arg9 Uint32_t, arg10 Uint32_t, arg11 Uint32_t, arg12 *byte, arg13 int64) (_swig_ret int)

func Wally_tx_get_total_output_satoshi

func Wally_tx_get_total_output_satoshi(arg1 Wally_tx, arg2 Uint64_t) (_swig_ret int)

func Wally_tx_get_txid added in v0.0.1005

func Wally_tx_get_txid(arg1 Wally_tx, arg2 *byte, arg3 int64) (_swig_ret int)

func Wally_tx_get_vsize

func Wally_tx_get_vsize(arg1 Wally_tx, arg2 *int64) (_swig_ret int)

func Wally_tx_get_weight

func Wally_tx_get_weight(arg1 Wally_tx, arg2 *int64) (_swig_ret int)

func Wally_tx_get_witness_count

func Wally_tx_get_witness_count(arg1 Wally_tx, arg2 *int64) (_swig_ret int)

func Wally_tx_init_alloc

func Wally_tx_init_alloc(arg1 Uint32_t, arg2 Uint32_t, arg3 int64, arg4 int64, arg5 Wally_tx) (_swig_ret int)

func Wally_tx_input_free

func Wally_tx_input_free(arg1 Wally_tx_input) (_swig_ret int)

func Wally_tx_input_init_alloc

func Wally_tx_input_init_alloc(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *byte, arg6 int64, arg7 Wally_tx_witness_stack, arg8 Wally_tx_input) (_swig_ret int)

func Wally_tx_is_coinbase

func Wally_tx_is_coinbase(arg1 Wally_tx, arg2 *int64) (_swig_ret int)

func Wally_tx_is_elements

func Wally_tx_is_elements(arg1 Wally_tx, arg2 *int64) (_swig_ret int)

func Wally_tx_output_clone_alloc added in v0.0.1005

func Wally_tx_output_clone_alloc(arg1 Wally_tx_output, arg2 Wally_tx_output) (_swig_ret int)

func Wally_tx_output_free

func Wally_tx_output_free(arg1 Wally_tx_output) (_swig_ret int)

func Wally_tx_output_init_alloc

func Wally_tx_output_init_alloc(arg1 Uint64_t, arg2 *byte, arg3 int64, arg4 Wally_tx_output) (_swig_ret int)

func Wally_tx_remove_input

func Wally_tx_remove_input(arg1 Wally_tx, arg2 int64) (_swig_ret int)

func Wally_tx_remove_output

func Wally_tx_remove_output(arg1 Wally_tx, arg2 int64) (_swig_ret int)

func Wally_tx_set_input_script

func Wally_tx_set_input_script(arg1 Wally_tx, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_tx_set_input_witness

func Wally_tx_set_input_witness(arg1 Wally_tx, arg2 int64, arg3 Wally_tx_witness_stack) (_swig_ret int)

func Wally_tx_to_bytes

func Wally_tx_to_bytes(arg1 Wally_tx, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_tx_to_hex

func Wally_tx_to_hex(arg1 Wally_tx, arg2 Uint32_t, arg3 *string) (_swig_ret int)

func Wally_tx_vsize_from_weight

func Wally_tx_vsize_from_weight(arg1 int64, arg2 *int64) (_swig_ret int)

func Wally_tx_witness_stack_add

func Wally_tx_witness_stack_add(arg1 Wally_tx_witness_stack, arg2 *byte, arg3 int64) (_swig_ret int)

func Wally_tx_witness_stack_add_dummy

func Wally_tx_witness_stack_add_dummy(arg1 Wally_tx_witness_stack, arg2 Uint32_t) (_swig_ret int)

func Wally_tx_witness_stack_clone_alloc added in v0.0.1005

func Wally_tx_witness_stack_clone_alloc(arg1 Wally_tx_witness_stack, arg2 Wally_tx_witness_stack) (_swig_ret int)

func Wally_tx_witness_stack_free

func Wally_tx_witness_stack_free(arg1 Wally_tx_witness_stack) (_swig_ret int)

func Wally_tx_witness_stack_init_alloc

func Wally_tx_witness_stack_init_alloc(arg1 int64, arg2 Wally_tx_witness_stack) (_swig_ret int)

func Wally_tx_witness_stack_set

func Wally_tx_witness_stack_set(arg1 Wally_tx_witness_stack, arg2 int64, arg3 *byte, arg4 int64) (_swig_ret int)

func Wally_tx_witness_stack_set_dummy

func Wally_tx_witness_stack_set_dummy(arg1 Wally_tx_witness_stack, arg2 int64, arg3 Uint32_t) (_swig_ret int)

func Wally_wif_from_bytes

func Wally_wif_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 Uint32_t, arg5 *string) (_swig_ret int)

func Wally_wif_is_uncompressed

func Wally_wif_is_uncompressed(arg1 string, arg2 *int64) (_swig_ret int)

func Wally_wif_to_address

func Wally_wif_to_address(arg1 string, arg2 Uint32_t, arg3 Uint32_t, arg4 *string) (_swig_ret int)

func Wally_wif_to_bytes

func Wally_wif_to_bytes(arg1 string, arg2 Uint32_t, arg3 Uint32_t, arg4 *byte, arg5 int64) (_swig_ret int)

func Wally_wif_to_public_key

func Wally_wif_to_public_key(arg1 string, arg2 Uint32_t, arg3 *byte, arg4 int64, arg5 *int64) (_swig_ret int)

func Wally_witness_multisig_from_bytes

func Wally_witness_multisig_from_bytes(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 int64, arg7 Uint32_t, arg8 Wally_tx_witness_stack) (_swig_ret int)

func Wally_witness_p2wpkh_from_der

func Wally_witness_p2wpkh_from_der(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Wally_tx_witness_stack) (_swig_ret int)

func Wally_witness_p2wpkh_from_sig

func Wally_witness_p2wpkh_from_sig(arg1 *byte, arg2 int64, arg3 *byte, arg4 int64, arg5 Uint32_t, arg6 Wally_tx_witness_stack) (_swig_ret int)

func Wally_witness_program_from_bytes

func Wally_witness_program_from_bytes(arg1 *byte, arg2 int64, arg3 Uint32_t, arg4 *byte, arg5 int64, arg6 *int64) (_swig_ret int)

Types

type CCharArray

type CCharArray struct {
	P      *byte
	Length int64
}

type ExtKey

type ExtKey struct {
	ChainCode   [32]byte
	Fingerprint [20]byte
	Depth       uint8
	Pad         [10]byte
	PrivKey     [33]byte
	Index       uint32
	Hash160     [20]byte
	Version     uint32
	Pad2        [3]byte
	PubKey      [33]byte
}

func Bip32KeyFromBase58

func Bip32KeyFromBase58(xKeyBase58 string) (extKey *ExtKey, ret int)

*

  • Convert a base58 encoded extended key to an extended key. *
  • :param xKeyBase58: The extended key in base58.

func Bip32KeyFromParent

func Bip32KeyFromParent(extKey *ExtKey, childNum uint32, flags uint32) (childExtKey *ExtKey, ret int)

*

  • Create a new child extended key from a parent extended key. *
  • :param extKey: The parent extended key.
  • :param childNum: The child number to create. Numbers greater *| than or equal to “BIP32_INITIAL_HARDENED_CHILD“ represent *| hardened keys that cannot be created from public parent *| extended keys.
  • :param flags: BIP32_FLAG_KEY_ Flags indicating the type of derivation wanted. *| You can not derive a private child extended key from a public *| parent extended key.

func Bip32KeyFromParentPath

func Bip32KeyFromParentPath(extKey *ExtKey, childPath []uint32, flags uint32) (childExtKey *ExtKey, ret int)

*

  • Create a new child extended key from a parent extended key and a path. *
  • :param extKey: The parent extended key.
  • :param childPath: The path of child numbers to create.
  • :param flags: BIP32_KEY_ Flags indicating the type of derivation wanted.

func Bip32KeyFromSeed

func Bip32KeyFromSeed(seed []byte, version uint32, flags uint32) (extKey *ExtKey, ret int)

*

  • Create a new master extended key from entropy. *
  • This creates a new master key, i.e. the root of a new HD tree.
  • The entropy passed in may produce an invalid key. If this happens,
  • WALLY_ERROR will be returned and the caller should retry with
  • new entropy. *
  • :param seed: Entropy to use.
  • :param version: Either “BIP32_VER_MAIN_PRIVATE“ or “BIP32_VER_TEST_PRIVATE“, *| indicating mainnet or testnet/regtest respectively.
  • :param flags: Either “BIP32_FLAG_SKIP_HASH“ to skip hash160 calculation, or 0.

func Bip32KeyFromUint32ParentPath

func Bip32KeyFromUint32ParentPath(extKey *ExtKey, childPath []uint32, flags uint32) (childExtKey *ExtKey, ret int)

*

  • Create a new child extended key from a parent extended key and a uint32 slice path. *
  • :param extKey: The parent extended key.
  • :param childPath: The path of child numbers to create.
  • :param flags: BIP32_KEY_ Flags indicating the type of derivation wanted.

func (*ExtKey) Swigcptr

func (k *ExtKey) Swigcptr() uintptr

type Ext_key

type Ext_key interface {
	Swigcptr() uintptr
}

type SwigcptrExt_key

type SwigcptrExt_key uintptr

func (SwigcptrExt_key) Swigcptr

func (p SwigcptrExt_key) Swigcptr() uintptr

type SwigcptrUint32_t

type SwigcptrUint32_t uintptr

func (SwigcptrUint32_t) Swigcptr

func (p SwigcptrUint32_t) Swigcptr() uintptr

type SwigcptrUint64_t

type SwigcptrUint64_t uintptr

func (SwigcptrUint64_t) Swigcptr

func (p SwigcptrUint64_t) Swigcptr() uintptr

type SwigcptrWally_tx

type SwigcptrWally_tx uintptr

func (SwigcptrWally_tx) Swigcptr

func (p SwigcptrWally_tx) Swigcptr() uintptr

type SwigcptrWally_tx_input

type SwigcptrWally_tx_input uintptr

func (SwigcptrWally_tx_input) Swigcptr

func (p SwigcptrWally_tx_input) Swigcptr() uintptr

type SwigcptrWally_tx_output

type SwigcptrWally_tx_output uintptr

func (SwigcptrWally_tx_output) Swigcptr

func (p SwigcptrWally_tx_output) Swigcptr() uintptr

type SwigcptrWally_tx_witness_stack

type SwigcptrWally_tx_witness_stack uintptr

func (SwigcptrWally_tx_witness_stack) Swigcptr

type SwigcptrWords

type SwigcptrWords uintptr

func (SwigcptrWords) Swigcptr

func (p SwigcptrWords) Swigcptr() uintptr

type Uint32_t

type Uint32_t interface {
	Swigcptr() uintptr
}

type Uint64_t

type Uint64_t interface {
	Swigcptr() uintptr
}

type WallyTx

type WallyTx struct {
	Version  uint32
	Locktime uint32

	NumInputs           uint64
	InputsAllocationLen uint64

	NumOutputs           uint64
	OutputsAllocationLen uint64
	// contains filtered or unexported fields
}

func WallyTxFromHex

func WallyTxFromHex(hex string, flags uint32) (wallyTx *WallyTx, ret int)

func (WallyTx) ListInputs

func (tx WallyTx) ListInputs() (txInputs []*WallyTxInput)

func (WallyTx) ListOutputs

func (tx WallyTx) ListOutputs() (txOutputs []*WallyTxOutput)

func (*WallyTx) Swigcptr

func (tx *WallyTx) Swigcptr() uintptr

type WallyTxArgOutput

type WallyTxArgOutput uintptr

func (WallyTxArgOutput) Swigcptr

func (p WallyTxArgOutput) Swigcptr() uintptr

type WallyTxInput

type WallyTxInput struct {
	Txhash   [WALLY_TXHASH_LEN]byte
	Index    uint32
	Sequence uint32

	ScriptLen uint64

	Features      uint8
	BlindingNonce [SHA256_LEN]byte
	Entropy       [SHA256_LEN]byte

	IssuanceAmountLen uint64

	InflationKeysLen uint64

	IssuanceAmountRangeproofLen uint64

	InflationKeysRangeproofLen uint64
	// contains filtered or unexported fields
}

func (WallyTxInput) InflationKeysRangeproofToBytes

func (txi WallyTxInput) InflationKeysRangeproofToBytes() []byte

func (WallyTxInput) InflationKeysToBytes

func (txi WallyTxInput) InflationKeysToBytes() []byte

func (WallyTxInput) IssuanceAmountRangeproofToBytes

func (txi WallyTxInput) IssuanceAmountRangeproofToBytes() []byte

func (WallyTxInput) IssuanceAmountToBytes

func (txi WallyTxInput) IssuanceAmountToBytes() []byte

func (WallyTxInput) PeginWitnessStack

func (txi WallyTxInput) PeginWitnessStack() (witnessStack *WallyTxWitnessStack)

func (WallyTxInput) ScriptToBytes

func (txi WallyTxInput) ScriptToBytes() []byte

func (WallyTxInput) WitnessStack

func (txi WallyTxInput) WitnessStack() (witnessStack *WallyTxWitnessStack)

type WallyTxOutput

type WallyTxOutput struct {
	Satoshi uint64

	ScriptLen uint64
	Features  uint8

	AssetLen uint64

	ValueLen uint64

	NonceLen uint64

	SurjectionproofLen uint64

	RangeproofLen uint64
	// contains filtered or unexported fields
}

func (WallyTxOutput) AssetToBytes

func (txo WallyTxOutput) AssetToBytes() []byte

func (WallyTxOutput) NonceToBytes

func (txo WallyTxOutput) NonceToBytes() []byte

func (WallyTxOutput) RangeproofToBytes

func (txo WallyTxOutput) RangeproofToBytes() []byte

func (WallyTxOutput) ScriptToBytes

func (txo WallyTxOutput) ScriptToBytes() []byte

func (WallyTxOutput) SurjectionproofToBytes

func (txo WallyTxOutput) SurjectionproofToBytes() []byte

func (WallyTxOutput) ValueToBytes

func (txo WallyTxOutput) ValueToBytes() []byte

type WallyTxWitnessItem

type WallyTxWitnessItem struct {
	WitnessLen uint64
	// contains filtered or unexported fields
}

func (WallyTxWitnessItem) WitnessToBytes

func (txwi WallyTxWitnessItem) WitnessToBytes() []byte

type WallyTxWitnessStack

type WallyTxWitnessStack struct {
	NumItems           uint64
	ItemsAllocationLen uint64
	// contains filtered or unexported fields
}

func (WallyTxWitnessStack) ListItems

func (txws WallyTxWitnessStack) ListItems() (items []*WallyTxWitnessItem)

func (*WallyTxWitnessStack) Swigcptr

func (txws *WallyTxWitnessStack) Swigcptr() uintptr

type Wally_tx

type Wally_tx interface {
	Swigcptr() uintptr
}

type Wally_tx_input

type Wally_tx_input interface {
	Swigcptr() uintptr
}

type Wally_tx_output

type Wally_tx_output interface {
	Swigcptr() uintptr
}

type Wally_tx_witness_stack

type Wally_tx_witness_stack interface {
	Swigcptr() uintptr
}

type Words

type Words interface {
	Swigcptr() uintptr
}

Jump to

Keyboard shortcuts

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