Open vorburger opened 1 year ago
Using https://wallet.filfox.info/en/settings/private-key I have managed to "convert" my 12 words (mnemonic?) to a : Lotus type private key but that's not the right format either, that one fails saying:
thread 'main' panicked at 'Error parsing private key: GenericString("Invalid Key Length")', /home/vorburger/.cargo/git/checkouts/contracts-f6dccc69c922f7ab/229706d/cli/src/utils.rs:320:29
I'm no longer blocked by this, as it using https://payouts.saturn.tech finally worked for me now (the "trick" that I was missing was simply to stop using MetaMask Flask with https://github.com/ChainSafe/filsnap and just use regular MetaMask).
Keeping this issue open instead of closing it myself because it still seems to me that some documentation (in README and/or output of the CLI) about exactly what kind/format of private key would be required by --method local
may be useful to others.
@vorburger Addressed this in this PR: https://github.com/filecoin-saturn/contracts/issues/70 :)
@AmeanAsad #70 is this bug ;),PR might be #78?
I'll test that when I have a minute, and update here.
@vorburger You are correct! Let me know if there are still issues and feel free to close if its fixed :)
I am attempting to follow https://docs.saturn.tech/claim-your-rewards#be5761a498514ee4b78bc15ef3acd7f0 to Claim Earnings.
Need to use
--method local
as I do not have a Ledger nor running Lotus, so I'm doing:It's unfortunately not entirely clear to me yet which private key in what format must be typed in here... I'm guessing this is what https://docs.saturn.tech/claim-your-rewards refers to as the Earnings Claiming Address - that one with ~0.5 FIL on it, which has both a 0x ETH account address and a f4 FILE address? I do own such an account, but pasting its 12 words (mnemonic?) to the prompt above fails with:
I vaguely understand that the 12 words (mnemonic?) and private key are not the same, so I have tried to import the 12 words (mnemonic?) into Fox Wallet, which had a UI to Export Private Key giving me a 112 characters long String, but pasting that to the prompt above fails similiarly:
BTW what's that
--secret <SECRET>
argument for a Path to the wallet mnemonic whichsaturn-contracts --help
shows - can that be used forclaim
, or is that something else? If it can be used, what would that file have to contain? I tried putting the same 12 words (mnemonic?) into a file passed to--secret
and add that argument, but it still asked for a "private key", FYI:I'll try to poke around the source code a bit to see if I can figure it out, but would love some guidance...
@AmeanAsad @aarshkshah1992 @alexander-camuto