I was tinkering around with the ZEC testnet a couple days ago. I'm trying to familiarize myself with the network's view keys.
I was able to produce a string starting with "zxviewtestsapling..." and play around with it, I could have sworn I created a Sapling z-address watching wallet.
However, I deleted the virtual machines that I had been using. Now, I am trying to recreate what I had before. All I have is some notes I pasted into a text file.
My notes indicate that I exported the view key from the main wallet using ./zcash-cli z_exportviewingkey <addr> and then subsequently created a watching wallet on the other VM using ./zcash-cli z_importviewingkey <vkey> yes 1 but now that I am trying to recreate this I am running into errors.
When using zcash-cli z_exportkey <addr> this yields a string starting with "secret-extended-key-test..." which is the private spend key of the address, correct? Not the view key?
When I try to use ./zcash-cli z_exportviewingkey <addr> I receive:
error code: -5 error message: Currently, only Sprout zaddrs are supported
Which runs counter not only to my recent memory, but also the apparent sapling view key I have saved from my prior experimentation.
I remember from before that when I used ./zcash-cli z_listaddresses that it wouldn't return any addresses, but when I used ./zcash-cli z_listaddresses true it would, which is precisely the behavior to be expected if I had imported the view key from a Sapling z-address, correct? The string I was using has the word sapling in it, so I don't think it's possible that I imported a Sprout z-address by accident.
What am I doing wrong here? I want to practice importing/exporting/backing up Sapling view keys. I am currently using version 2.1.1-1; is it possible the binaries I am using are outdated?
I was previously using the zcashd that was bundled with ZecWallet, but I abandoned ZecWallet when I was unable to make my viewing addresses be reflected in the graphical user interface.
Can anyone shed light on my situation? What is the correct method to obtain the view key for a Sapling z-address?
via Zcash https://ift.tt/2SW4JoK