bb8 icon indicating copy to clipboard operation
bb8 copied to clipboard

public address instead of seed

Open mortenkjarulff opened this issue 4 years ago • 4 comments

I was looking for a command line tool that could build a stellar transaction

  • without the use of secret keys
  • return the xdr I think I found it :-) I think I already like it a lot!

I would then sign and submit it with the keybase wallet sign --submit command (https://keybase.io).

I have a few questions:

I tried these:

STELLAR_NETWORK=public ./bb send-payment '{"from": "GBNVRDJSNJB4KZKFH7NV7RIYN2PQ3CJACIVM2MITNOK5U7CGOUY2FYEX", "to": "GDACXICKEJFU6J6EJSEEOVYIT4P7WGSXCAY6NLZD7DPJHJW4IZ36FFJ6", "amount": "1"}' | keybase wallet sign --submit
STELLAR_NETWORK=public ./bb set-options '{"source_account": "GBNVRDJSNJB4KZKFH7NV7RIYN2PQ3CJACIVM2MITNOK5U7CGOUY2FYEX", "home_domain": "mortenkjarulff.dk"}' | keybase wallet sign --submit
STELLAR_NETWORK=public ./bb set-options '{"source_account": "GBNVRDJSNJB4KZKFH7NV7RIYN2PQ3CJACIVM2MITNOK5U7CGOUY2FYEX", "home_domain": ""}' | keybase wallet sign --submit

And they work fine, altough I have used the public account key, and the doc says "seed":

example: set-options '{"source_account": "seed",
                       "home_domain": "stellar.org"}'

Same for send-payment:

example: send-payment '{"from": "seed", "to": "address", "amount": "42.0"}'

Is that an error in the documentation? Can I use public key instead of "seed" for all commands?

Do you still maintain the code?

/Morten

mortenkjarulff avatar Mar 01 '20 20:03 mortenkjarulff

I am not sure what this line does keybase wallet sign --submit since I have not used keybase with stellar, but..

all the bb8 commands do not require a seed and will work without it iff for example a seed is exported as an ENV variable or the transaction is composed and signed separately.

I think keybase wallet sign --submit does something similar to bb sign [seed] | bb submit hence you do not have a need to explicitly provide a seed.

tolitius avatar Mar 01 '20 23:03 tolitius

Thanks.

It's a cool tool.

Yes, in this context, keybase is just a wallet that keeps my keys, and does the same as bb sign+submit (keybase is much more).

Do you still maintain the code - 2 years since last commit?

/Morten

mortenkjarulff avatar Mar 02 '20 06:03 mortenkjarulff

I was about to donate to GAUYQY4TB22GPRXXLVLK24ZVPTAGGQM7FQNYVXNZMMKX65UJVX6DROID But keybase says this account is empty, so is it the correct address?

mortenkjarulff avatar Mar 02 '20 07:03 mortenkjarulff

Do you still maintain the code - 2 years since last commit?

not actively, I created it in order to learn Stellar + at the time I did not find any good interface I liked.

But keybase says this account is empty, so is it the correct address?

you would probably be the first one to contribute, so you would have to create the account as described here.

tolitius avatar Mar 04 '20 03:03 tolitius