libwally-core documentation
Contents:
- Core Functions
wally_init()wally_cleanup()wally_get_build_version()wally_malloc()wally_calloc()wally_free()wally_strdup_n()wally_strdup()wally_get_secp_context()wally_get_new_secp_context()wally_secp_context_free()wally_bzero()wally_free_string()wally_secp_randomize()wally_hex_verify()wally_hex_n_verify()wally_hex_from_bytes()wally_hex_to_bytes()wally_hex_n_to_bytes()wally_base58_from_bytes()wally_base58_to_bytes()wally_base58_n_to_bytes()wally_base58_get_length()wally_base58_n_get_length()wally_base64_from_bytes()wally_base64_to_bytes()wally_base64_n_to_bytes()wally_base64_get_maximum_length()wally_base64_n_get_maximum_length()wally_get_operations()wally_set_operations()wally_is_elements_build()- Core Constants
- Crypto Functions
wally_scrypt()wally_aes_len()wally_aes()wally_aes_cbc_get_maximum_length()wally_aes_cbc()wally_sha256()wally_sha256_midstate()wally_sha256d()wally_sha512()wally_bip340_tagged_hash()wally_ripemd160()wally_hash160()wally_hmac_sha256()wally_hmac_sha512()wally_pbkdf2_hmac_sha256()wally_pbkdf2_hmac_sha512()wally_ec_private_key_verify()wally_ec_public_key_verify()wally_ec_xonly_public_key_verify()wally_ec_public_key_from_private_key()wally_ec_public_key_decompress()wally_ec_public_key_negate()wally_ec_public_key_tweak()wally_ec_public_key_bip341_tweak()wally_ec_private_key_bip341_tweak()wally_ec_sig_from_bytes_len()wally_ec_sig_from_bytes()wally_ec_sig_from_bytes_aux_len()wally_ec_sig_from_bytes_aux()wally_ec_sig_normalize()wally_ec_sig_to_der()wally_ec_sig_from_der()wally_ec_sig_verify()wally_ec_sig_to_public_key()wally_ec_scalar_verify()wally_ec_scalar_add()wally_ec_scalar_subtract()wally_ec_scalar_multiply()wally_ec_scalar_add_to()wally_ec_scalar_subtract_from()wally_ec_scalar_multiply_by()wally_format_bitcoin_message()wally_ecdh()wally_s2c_sig_from_bytes()wally_s2c_commitment_verify()wally_aes_cbc_with_ecdh_key_get_maximum_length()wally_aes_cbc_with_ecdh_key()- Crypto Constants
- Address Functions
wally_addr_segwit_from_bytes()wally_addr_segwit_to_bytes()wally_addr_segwit_n_to_bytes()wally_addr_segwit_get_version()wally_addr_segwit_n_get_version()wally_address_to_scriptpubkey()wally_scriptpubkey_to_address()wally_wif_from_bytes()wally_wif_to_bytes()wally_wif_is_uncompressed()wally_wif_to_public_key()wally_bip32_key_to_address()wally_bip32_key_to_addr_segwit()wally_wif_to_address()wally_confidential_addr_to_addr()wally_confidential_addr_to_ec_public_key()wally_confidential_addr_from_addr()wally_confidential_addr_to_addr_segwit()wally_confidential_addr_segwit_to_ec_public_key()wally_confidential_addr_from_addr_segwit()- Address Constants
- Bip32 Functions
bip32_key_free()bip32_key_init()bip32_key_init_alloc()bip32_key_from_seed_custom()bip32_key_from_seed()bip32_key_from_seed_custom_alloc()bip32_key_from_seed_alloc()bip32_key_serialize()bip32_key_unserialize()bip32_key_unserialize_alloc()bip32_key_from_parent()bip32_key_from_parent_alloc()bip32_key_from_parent_path()bip32_key_from_parent_path_alloc()bip32_key_from_parent_path_str()bip32_key_from_parent_path_str_n()bip32_key_from_parent_path_str_alloc()bip32_key_from_parent_path_str_n_alloc()bip32_key_with_tweak_from_parent_path()bip32_key_with_tweak_from_parent_path_alloc()bip32_key_to_base58()bip32_key_from_base58()bip32_key_from_base58_n()bip32_key_from_base58_alloc()bip32_key_from_base58_n_alloc()bip32_key_strip_private_key()bip32_key_get_fingerprint()bip32_path_from_str_len()bip32_path_from_str()bip32_path_from_str_n_len()bip32_path_from_str_n()bip32_path_str_get_features()bip32_path_str_n_get_features()- Bip32 Constants
- Bip38 Functions
- Bip39 Functions
- Bip85 Functions
- Coinselection Functions
- Map Functions
wally_map_init()wally_map_init_alloc()wally_map_free()wally_map_clear()wally_map_add()wally_map_add_integer()wally_map_replace()wally_map_replace_integer()wally_map_remove()wally_map_remove_integer()wally_map_find_from()wally_map_find()wally_map_find_integer()wally_map_get()wally_map_get_integer()wally_map_get_num_items()wally_map_get_item_key_length()wally_map_get_item_key()wally_map_get_item_integer_key()wally_map_get_item_length()wally_map_get_item()wally_map_sort()wally_map_combine()wally_map_assign()wally_map_find_bip32_public_key_from()wally_map_keypath_get_bip32_key_from()wally_map_keypath_get_bip32_public_key_from()wally_map_keypath_get_bip32_key_from_alloc()wally_keypath_bip32_verify()wally_keypath_public_key_verify()wally_keypath_xonly_public_key_verify()wally_merkle_path_xonly_public_key_verify()wally_bip341_control_block_verify()wally_map_keypath_bip32_init_alloc()wally_map_keypath_public_key_init_alloc()wally_map_keypath_add()wally_map_merkle_path_add()wally_keypath_get_fingerprint()wally_map_keypath_get_item_fingerprint()wally_keypath_get_path_len()wally_map_keypath_get_item_path_len()wally_keypath_get_path()wally_map_keypath_get_item_path()wally_map_hash_preimage_verify()wally_map_preimage_init_alloc()wally_map_preimage_ripemd160_add()wally_map_preimage_sha256_add()wally_map_preimage_hash160_add()wally_map_preimage_sha256d_add()
- Psbt Functions
wally_psbt_input_set_previous_txid()wally_psbt_input_set_output_index()wally_psbt_input_set_sequence()wally_psbt_input_clear_sequence()wally_psbt_input_set_utxo()wally_psbt_input_set_witness_utxo()wally_psbt_input_set_witness_utxo_from_tx()wally_psbt_input_set_redeem_script()wally_psbt_input_set_witness_script()wally_psbt_input_set_final_scriptsig()wally_psbt_input_set_final_witness()wally_psbt_input_set_keypaths()wally_psbt_input_find_keypath()wally_psbt_input_keypath_add()wally_psbt_input_taproot_keypath_add()wally_psbt_input_set_signatures()wally_psbt_input_set_taproot_signature()wally_psbt_input_set_taproot_internal_key()wally_psbt_input_find_signature()wally_psbt_input_add_signature()wally_psbt_input_set_unknowns()wally_psbt_input_find_unknown()wally_psbt_input_set_sighash()wally_psbt_input_set_required_locktime()wally_psbt_input_clear_required_locktime()wally_psbt_input_set_required_lockheight()wally_psbt_input_clear_required_lockheight()wally_psbt_input_set_amount()wally_psbt_input_get_amount_rangeproof()wally_psbt_input_get_amount_rangeproof_len()wally_psbt_input_set_amount_rangeproof()wally_psbt_input_clear_amount_rangeproof()wally_psbt_input_get_asset()wally_psbt_input_get_asset_len()wally_psbt_input_set_asset()wally_psbt_input_clear_asset()wally_psbt_input_get_asset_surjectionproof()wally_psbt_input_get_asset_surjectionproof_len()wally_psbt_input_set_asset_surjectionproof()wally_psbt_input_clear_asset_surjectionproof()wally_psbt_input_set_issuance_amount()wally_psbt_input_set_inflation_keys()wally_psbt_input_set_pegin_amount()wally_psbt_input_set_pegin_tx()wally_psbt_input_set_pegin_witness()wally_psbt_input_get_pegin_txout_proof()wally_psbt_input_get_pegin_txout_proof_len()wally_psbt_input_set_pegin_txout_proof()wally_psbt_input_clear_pegin_txout_proof()wally_psbt_input_get_pegin_genesis_blockhash()wally_psbt_input_get_pegin_genesis_blockhash_len()wally_psbt_input_set_pegin_genesis_blockhash()wally_psbt_input_clear_pegin_genesis_blockhash()wally_psbt_input_get_pegin_claim_script()wally_psbt_input_get_pegin_claim_script_len()wally_psbt_input_set_pegin_claim_script()wally_psbt_input_clear_pegin_claim_script()wally_psbt_input_get_issuance_amount_commitment()wally_psbt_input_get_issuance_amount_commitment_len()wally_psbt_input_set_issuance_amount_commitment()wally_psbt_input_clear_issuance_amount_commitment()wally_psbt_input_get_issuance_amount_rangeproof()wally_psbt_input_get_issuance_amount_rangeproof_len()wally_psbt_input_set_issuance_amount_rangeproof()wally_psbt_input_clear_issuance_amount_rangeproof()wally_psbt_input_get_issuance_blinding_nonce()wally_psbt_input_get_issuance_blinding_nonce_len()wally_psbt_input_set_issuance_blinding_nonce()wally_psbt_input_clear_issuance_blinding_nonce()wally_psbt_input_get_issuance_asset_entropy()wally_psbt_input_get_issuance_asset_entropy_len()wally_psbt_input_set_issuance_asset_entropy()wally_psbt_input_clear_issuance_asset_entropy()wally_psbt_input_get_issuance_amount_blinding_rangeproof()wally_psbt_input_get_issuance_amount_blinding_rangeproof_len()wally_psbt_input_set_issuance_amount_blinding_rangeproof()wally_psbt_input_clear_issuance_amount_blinding_rangeproof()wally_psbt_input_get_inflation_keys_commitment()wally_psbt_input_get_inflation_keys_commitment_len()wally_psbt_input_set_inflation_keys_commitment()wally_psbt_input_clear_inflation_keys_commitment()wally_psbt_input_get_inflation_keys_rangeproof()wally_psbt_input_get_inflation_keys_rangeproof_len()wally_psbt_input_set_inflation_keys_rangeproof()wally_psbt_input_clear_inflation_keys_rangeproof()wally_psbt_input_get_inflation_keys_blinding_rangeproof()wally_psbt_input_get_inflation_keys_blinding_rangeproof_len()wally_psbt_input_set_inflation_keys_blinding_rangeproof()wally_psbt_input_clear_inflation_keys_blinding_rangeproof()wally_psbt_input_get_utxo_rangeproof()wally_psbt_input_get_utxo_rangeproof_len()wally_psbt_input_set_utxo_rangeproof()wally_psbt_input_clear_utxo_rangeproof()wally_psbt_input_generate_explicit_proofs()wally_psbt_input_is_finalized()wally_psbt_output_set_redeem_script()wally_psbt_output_set_witness_script()wally_psbt_output_set_keypaths()wally_psbt_output_find_keypath()wally_psbt_output_keypath_add()wally_psbt_output_taproot_keypath_add()wally_psbt_output_set_unknowns()wally_psbt_output_find_unknown()wally_psbt_output_set_amount()wally_psbt_output_clear_amount()wally_psbt_output_set_script()wally_psbt_output_set_taproot_internal_key()wally_psbt_output_set_blinder_index()wally_psbt_output_clear_blinder_index()wally_psbt_output_get_value_commitment()wally_psbt_output_get_value_commitment_len()wally_psbt_output_set_value_commitment()wally_psbt_output_clear_value_commitment()wally_psbt_output_get_asset()wally_psbt_output_get_asset_len()wally_psbt_output_set_asset()wally_psbt_output_clear_asset()wally_psbt_output_get_asset_commitment()wally_psbt_output_get_asset_commitment_len()wally_psbt_output_set_asset_commitment()wally_psbt_output_clear_asset_commitment()wally_psbt_output_get_value_rangeproof()wally_psbt_output_get_value_rangeproof_len()wally_psbt_output_set_value_rangeproof()wally_psbt_output_clear_value_rangeproof()wally_psbt_output_get_asset_surjectionproof()wally_psbt_output_get_asset_surjectionproof_len()wally_psbt_output_set_asset_surjectionproof()wally_psbt_output_clear_asset_surjectionproof()wally_psbt_output_get_blinding_public_key()wally_psbt_output_get_blinding_public_key_len()wally_psbt_output_set_blinding_public_key()wally_psbt_output_clear_blinding_public_key()wally_psbt_output_get_ecdh_public_key()wally_psbt_output_get_ecdh_public_key_len()wally_psbt_output_set_ecdh_public_key()wally_psbt_output_clear_ecdh_public_key()wally_psbt_output_get_value_blinding_rangeproof()wally_psbt_output_get_value_blinding_rangeproof_len()wally_psbt_output_set_value_blinding_rangeproof()wally_psbt_output_clear_value_blinding_rangeproof()wally_psbt_output_get_asset_blinding_surjectionproof()wally_psbt_output_get_asset_blinding_surjectionproof_len()wally_psbt_output_set_asset_blinding_surjectionproof()wally_psbt_output_clear_asset_blinding_surjectionproof()wally_psbt_output_get_blinding_status()wally_psbt_init_alloc()wally_psbt_free()wally_psbt_set_version()wally_psbt_get_id()wally_psbt_get_locktime()wally_psbt_is_finalized()wally_psbt_is_input_finalized()wally_psbt_set_global_tx()wally_psbt_set_tx_version()wally_psbt_get_tx_version()wally_psbt_set_fallback_locktime()wally_psbt_clear_fallback_locktime()wally_psbt_set_tx_modifiable_flags()wally_psbt_set_global_scalars()wally_psbt_add_global_scalar()wally_psbt_find_global_scalar()wally_psbt_set_pset_modifiable_flags()wally_psbt_set_global_genesis_blockhash()wally_psbt_has_global_genesis_blockhash()wally_psbt_get_global_genesis_blockhash()wally_psbt_find_input_spending_utxo()wally_psbt_add_input_keypath()wally_psbt_add_input_taproot_keypath()wally_psbt_add_tx_input_at()wally_psbt_remove_input()wally_psbt_get_input_bip32_key_from_alloc()wally_psbt_get_input_signing_script_len()wally_psbt_get_input_signing_script()wally_psbt_get_input_scriptcode_len()wally_psbt_get_input_scriptcode()wally_psbt_get_input_signature_hash()wally_psbt_add_output_keypath()wally_psbt_add_output_taproot_keypath()wally_psbt_add_tx_output_at()wally_psbt_remove_output()wally_psbt_from_bytes()wally_psbt_get_length()wally_psbt_to_bytes()wally_psbt_from_base64()wally_psbt_from_base64_n()wally_psbt_to_base64()wally_psbt_from_tx()wally_psbt_combine()wally_psbt_combine_ex()wally_psbt_clone_alloc()wally_psbt_blind()wally_psbt_blind_alloc()wally_psbt_signing_cache_enable()wally_psbt_signing_cache_disable()wally_psbt_sign()wally_psbt_sign_bip32()wally_psbt_sign_input_bip32()wally_psbt_finalize()wally_psbt_finalize_input()wally_psbt_extract()wally_psbt_is_elements()- Psbt Constants
- Script Functions
wally_scriptpubkey_get_type()wally_scriptpubkey_p2pkh_from_bytes()wally_scriptsig_p2pkh_from_sig()wally_witness_p2wpkh_from_sig()wally_scriptsig_p2pkh_from_der()wally_witness_p2wpkh_from_der()wally_scriptpubkey_p2tr_from_bytes()wally_witness_p2tr_from_sig()wally_scriptpubkey_op_return_from_bytes()wally_scriptpubkey_p2sh_from_bytes()wally_scriptpubkey_multisig_from_bytes()wally_scriptsig_multisig_from_bytes()wally_witness_multisig_from_bytes()wally_scriptpubkey_csv_2of2_then_1_from_bytes()wally_scriptpubkey_csv_2of2_then_1_from_bytes_opt()wally_scriptpubkey_csv_blocks_from_csv_2of2_then_1()wally_script_push_from_bytes()wally_varint_get_length()wally_varint_to_bytes()wally_varbuff_get_length()wally_varbuff_to_bytes()wally_witness_program_from_bytes()wally_witness_program_from_bytes_and_version()wally_elements_pegout_script_size()wally_elements_pegout_script_from_bytes()wally_elements_pegin_contract_script_from_bytes()- Script Constants
- Descriptor Functions
wally_descriptor_parse()wally_descriptor_free()wally_descriptor_canonicalize()wally_descriptor_get_checksum()wally_descriptor_get_network()wally_descriptor_set_network()wally_descriptor_get_features()wally_descriptor_get_num_variants()wally_descriptor_get_num_paths()wally_descriptor_get_depth()wally_descriptor_get_num_keys()wally_descriptor_get_key()wally_descriptor_get_key_features()wally_descriptor_get_key_child_path_str_len()wally_descriptor_get_key_child_path_str()wally_descriptor_get_key_origin_fingerprint()wally_descriptor_get_key_origin_path_str_len()wally_descriptor_get_key_origin_path_str()wally_descriptor_to_script_get_maximum_length()wally_descriptor_to_script()wally_descriptor_to_address()wally_descriptor_to_addresses()- Descriptor Constants
- Symmetric Functions
- Transaction Functions
wally_tx_witness_stack_init_alloc()wally_tx_witness_stack_clone_alloc()wally_tx_witness_stack_get_num_items()wally_tx_witness_stack_add()wally_tx_witness_stack_add_dummy()wally_tx_witness_stack_set()wally_tx_witness_stack_set_dummy()wally_tx_witness_stack_from_bytes()wally_tx_witness_stack_get_length()wally_tx_witness_stack_to_bytes()wally_tx_witness_stack_free()wally_tx_input_init_alloc()wally_tx_input_clone_alloc()wally_tx_input_clone()wally_tx_input_free()wally_tx_output_init()wally_tx_output_init_alloc()wally_tx_output_clone_alloc()wally_tx_output_clone()wally_tx_output_free()wally_tx_init_alloc()wally_tx_clone_alloc()wally_tx_add_input()wally_tx_add_input_at()wally_tx_add_raw_input()wally_tx_add_raw_input_at()wally_tx_remove_input()wally_tx_set_input_script()wally_tx_set_input_witness()wally_tx_add_output()wally_tx_add_output_at()wally_tx_add_raw_output()wally_tx_add_raw_output_at()wally_tx_remove_output()wally_tx_get_witness_count()wally_tx_free()wally_tx_get_txid()wally_get_hash_prevouts()wally_tx_get_hash_prevouts()wally_tx_get_length()wally_tx_from_bytes()wally_tx_from_hex()wally_tx_to_bytes()wally_tx_to_hex()wally_tx_get_weight()wally_tx_get_vsize()wally_tx_vsize_from_weight()wally_tx_get_total_output_satoshi()wally_tx_get_btc_signature_hash()wally_tx_get_btc_taproot_signature_hash()wally_tx_get_signature_hash()wally_tx_get_input_signature_hash()wally_tx_is_coinbase()wally_tx_get_elements_weight_discount()wally_tx_elements_input_issuance_set()wally_tx_elements_input_issuance_free()wally_tx_elements_input_init_alloc()wally_tx_elements_input_is_pegin()wally_tx_elements_output_commitment_set()wally_tx_elements_output_commitment_free()wally_tx_elements_output_init()wally_tx_elements_output_init_alloc()wally_tx_add_elements_raw_input()wally_tx_add_elements_raw_input_at()wally_tx_add_elements_raw_output()wally_tx_add_elements_raw_output_at()wally_tx_is_elements()wally_tx_confidential_value_from_satoshi()wally_tx_confidential_value_to_satoshi()wally_tx_get_elements_signature_hash()wally_tx_elements_issuance_generate_entropy()wally_tx_elements_issuance_calculate_asset()wally_tx_elements_issuance_calculate_reissuance_token()- Transaction Constants
- Elements Functions
wally_asset_generator_from_bytes()wally_ecdh_nonce_hash()wally_asset_final_vbf()wally_asset_scalar_offset()wally_asset_value_commitment()wally_asset_rangeproof_get_maximum_len()wally_asset_rangeproof_with_nonce()wally_asset_rangeproof()wally_explicit_rangeproof()wally_explicit_rangeproof_verify()wally_asset_surjectionproof_size()wally_asset_surjectionproof_len()wally_asset_surjectionproof()wally_explicit_surjectionproof()wally_explicit_surjectionproof_verify()wally_asset_unblind_with_nonce()wally_asset_unblind()wally_asset_blinding_key_from_seed()wally_asset_blinding_key_to_ec_private_key()wally_asset_blinding_key_to_ec_public_key()wally_elip150_private_key_to_ec_private_key()wally_elip150_private_key_to_ec_public_key()wally_elip150_public_key_to_ec_public_key()wally_asset_blinding_key_to_abf_vbf()wally_asset_blinding_key_to_abf()wally_asset_blinding_key_to_vbf()wally_asset_pak_whitelistproof_size()wally_asset_pak_whitelistproof()wally_asset_pak_whitelistproof_len()- Elements Constants
- Anti-Exfil Functions