![](/img/trans.png)
[英]how to fix 'no such algorithm ecdsa for provider bc' while creating new wallet file using web3j
[英]How do i import my ethereum wallet using private key in android app with the help of web3j?
幫助我如何解決在文本區域輸入私鑰時獲取錢包的以太坊智能合約問題
Use WalletUtils functionality
The WalletUtils class can be used to load your credentials from various
formats:
WalletUtils.loadCredentials(String password,String source)
WalletUtils.loadBip39Credentials(String password,String mnemonic)
WalletUtils.loadBip39Credentials(String password,String mnemonic)
WalletUtils.loadJsonCredentials(String password,String content)
http://docs.web3j.io/latest/transactions/credentials/#use-walletutils-functionality
These are the methods provided by the web3j library can anyone help me out to import my wallet from
ethereum using private key??
在智能合約中輸入您的私鑰不是一個好主意。 保存在區塊鏈上的所有東西都是公開的。 因此,如果您在智能合約中輸入您的私鑰,任何人都可以看到它。 最好從你的錢包向合約發送以太幣,而不是讓智能合約按照你的規則管理它們。
使用Credentials.create
:
String privateKey = "0x40f315666f065b1113eaa538357ed9150db08e329fff15e417977bdc13099403";
Credentials credentials = Credentials.create(privateKey);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.