TezosRio / TezosJ_plainJava

Java Software Development Kit for Tezos blockchain
MIT License
32 stars 7 forks source link

private key,transation #5

Closed simpleshark closed 4 years ago

simpleshark commented 4 years ago

How to create a pair of public key and private key,then ,create a transaction use this

TezosRio commented 4 years ago

Actually, for security reasons, TezosJ creates the keys automatically under the hood, when you instantiate a new TezosWallet object. So you will never see the keys of a wallet. On the other hand, if you already have a pair of keys, you may create a wallet with them. There is a constructor that uses private and public keys to create a new wallet.

simpleshark commented 4 years ago

I don't have a private key so how do I sign? I see that I need an enckeys object to build the transaction, I can only get the address and mnemonic through the TezosWallet object, and finally, I can't get a new enckeys object by the address and mnemonic. In fact, I'm more concerned about how do I create transactions with this toolkit