libwally-core icon indicating copy to clipboard operation
libwally-core copied to clipboard

Derive scriptPubKey from BIP32 key

Open Sjors opened this issue 5 years ago • 1 comments

Similar to #103, but it would produce bytes containing the scriptPubKey.

This is useful when composing a transaction, to directly generate a change output. Otherwise you have to derive a change address with wally_bip32_key_to_address / wally_bip32_key_to_addr_segwit and then parse it with wally_addr_segwit_to_bytes / wally_address_to_scriptpubkey (#112)

Sjors avatar Jun 14 '19 10:06 Sjors

مشابه Duplicate of # شماره 103 است، اما بایت های حاوی scriptPubKey.

این هنگام نوشتن یک تراکنش، برای ایجاد مستقیم خروجی تغییر مفید است. در غیر این صورت باید یک آدرس تغییر را با 0xddBd2B932c763bA5b1b7AE3B362eac3e8d40121A_wally_bip32_key_to_address/ استخراج کنید و سپس آن را با / wally_bip32_key_to_addr_segwitتجزیه کنید ( #112 @) wally_addr_segwit_to_bytes``walladdress_ to_scriptpubkey(https://github.com/ElementsProject/libwally-core/pull/112)`

zar561 avatar Jul 07 '22 22:07 zar561