Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements v22: sendtoaddress to a confidential taproot address does not blind the output #1181

Closed
tiero opened this issue Oct 3, 2022 · 0 comments · Fixed by #1184
Closed

Comments

@tiero
Copy link

tiero commented Oct 3, 2022

I am using elements v0.22 and using sendtoaddress RPC to send to a confidential taproot address, Elements seem to fail to blind, and tx results in full unconfidential

elements-cli sendtoaddress el1pqwp9ze75659cn5ad0hw25nt2kv7j882gudn636hnh4qvjcmjh6jq5ca0d4cgl009m5rn5w0n3k2cqa3ths2qf7s8q6x2xplwgvlfhg0atxwjah9089tf 0.1

The address is a valid segwit v1

elements-cli validateaddress el1pqwp9ze75659cn5ad0hw25nt2kv7j882gudn636hnh4qvjcmjh6jq5ca0d4cgl009m5rn5w0n3k2cqa3ths2qf7s8q6x2xplwgvlfhg0atxwjah9089tf
{
  "isvalid": true,
  "isvalid_parent": false,
  "address": "ert1pvwhk6uy0hhja6pe688ecm9vqwc4mc9qylgrsdr9rqlhyx05m587s7j8p0k",
  "scriptPubKey": "512063af6d708fbde5dd073a39f38d9580762bbc1404fa07068ca307ee433e9ba1fd",
  "isscript": true,
  "iswitness": true,
  "witness_version": 1,
  "witness_program": "63af6d708fbde5dd073a39f38d9580762bbc1404fa07068ca307ee433e9ba1fd",
  "confidential_key": "",
  "unconfidential": "ert1pvwhk6uy0hhja6pe688ecm9vqwc4mc9qylgrsdr9rqlhyx05m587s7j8p0k"
}

This is my elements.conf

chain=liquidregtest
listen=1
txindex=1

[liquidregtest]
port=18886
rpcport=18884
rpcuser=admin1
rpcpassword=123
rpcallowip=0.0.0.0/0
rpcbind=0.0.0.0
pchmessagestart=12345678
blockfilterindex=1
peerblockfilters=1

mainchainrpcport=18443
mainchainrpcuser=admin1
mainchainrpcpassword=123

# This is the script that controls pegged in funds in Bitcoin network
# Users will be pegging into a P2SH of this, and the "watchmen"
# can then recover these funds and send them to users who desire to peg out.
# This template is 1-of-1 checkmultisig
#fedpegscript=5121<pubkey>51ae

# This is the script that controls how blocks are made
# We have to supply a signature that satisfies this to create
# a valid block.
#signblockscript=5121<pubkey2>51ae

# We want to validate pegins by checking with bitcoind if header exists
# in best known chain, and how deep. We combine this with pegin
# proof included in the pegin to get full security.

validatepegin=0
initialfreecoins=2100000000000000
fallbackfee=0.000001

## Dynafed

con_dyna_deploy_start=0
con_dyna_deploy_signal=1
con_nminerconfirmationwindow=1
con_nrulechangeactivationthreshold=1

## Taproot signaling
con_taproot_signal_start=0

## ZMQ
zmqpubrawblock=tcp://0.0.0.0:38332
zmqpubrawtx=tcp://0.0.0.0:38333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant