Private Key import result with 3 Address generation. #26979

issue tunerji opened this issue on January 27, 2023
  1. tunerji commented at 7:03 PM on January 27, 2023: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Private Key import result with 3 Address generation.

    Expected behavior Therefore, it seems a bug but also future request assumes that as bitcoin address generation has choice of version like segwit or leacy, the private key import should result within the setup.

    <!--- What behavior did you expect? -->

    Actual behavior Generates 3 types wallet like Legacy, Segwit and P2PKH

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    To reproduce

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. tunerji added the label Bug on Jan 27, 2023
  3. sipa commented at 7:06 PM on January 27, 2023: member

    I don't understand in what way the actual behavior is not expected.

  4. achow101 commented at 7:59 PM on January 27, 2023: member

    This is expected behavior for legacy wallets as the wallet is watching for all three address types and is capable of spending from them.

  5. achow101 closed this on Jan 27, 2023

  6. tunerji commented at 8:50 PM on January 27, 2023: none

    I don't understand in what way the actual behavior is not expected.

    Sorry for confusion, I do generate my addresses using Vanity methods outside Bitcoin Core and import them using import key function. Therefore, As I realized, as soon as private key imported, it generates version 3 types of addresses for one private key. However the idea of using hundreds of address makes it unnecessary crowd in the wallet and confusing.

  7. bitcoin locked this on Jan 27, 2024
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me