I’m attempting to make use of personal keys, addresses, and public addresses I generated myself. (for academic goal).
I’m working with bitcoin-cli by inserting the inputs I’ve generated myself. (in CMD)
the next code:
C:Program FilesBitcoindaemon>bitcoin-cli -regtest -named -rpcwallet="legacy" importmulti "[{"scriptPubKey":{"address":"<my P2PKH address>"},"timestamp":"now","pubkeys":["<my compressed public address in hex format>"],"keys":["<my private key in WIF format>"]}]" "{"rescan":false}"
returns this output:
[
{
"success": true,
"warnings": [
"Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag.",
"Importing as non-solvable: some required keys are missing. If this is intentional, don't provide any keys, pubkeys, witnessscript, or redeemscript."
]
}
]
however I do not know what keys are lacking since I would generated the whole lot based mostly on the identical key
(the order I generated the information:
- seed
- grasp key
- derived a baby key – any longer, I solely used the kid key
- public key based mostly on the kid key
- P2PKH deal with based mostly on the general public key
- copied the values: baby key, public key, P2PKH and typed them within the right place within the template I added above)
Is that this as a result of I exploit solely the kid key andf not the grasp key?
How can I forestall importing this knowledge as watch-only?
my predominant purpose is to attempt to do a lot of the features on my own with the least quantity of calls essentially.
- all of the code for producing the information has already been checked and is working as excepted (can present python code)
- I intend to make use of the import so I might use this knowledge in regtest mode for transactions
Thanks all upfront!