Second: That the owner_privkey would be the one I provided during the interactive dialog
Can you give me an example with a throw-away key, like
Both are not true. The import wallet did nicely show the payment_privkey and data_privkey that I provided, but it created a different owner_privkey and (hence???) it also created another owner address, one starting with an m instead of an 1.
Ah, you’re doing this in the test framework. If it starts with
m, then you’re fine. Bitcoin uses a different address encoding for testnet/regtest than for mainnet—the leading
1 becomes either
n, and the leading
2. For example,
n115cKwarwvY4JnZmNWsFGpsMxJEE4Vfe6 are the base58check-encoded hashes (i.e. addresses) of the same public key, but the former is the one you’d use in testnet/regtest and the latter is the one you use on mainnet.
You can dissect an address with
keylib, for example:
Python 2.7.14 (default, Dec 14 2017, 15:51:29)
[GCC 6.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import keylib