[英]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.