|
|
@ -74,9 +74,11 @@ public class EthWalletKeyServiceImpl implements IEthWalletKeyService { |
|
|
|
EthWalletKey ethWalletKey = new EthWalletKey(); |
|
|
|
EthWalletKey ethWalletKey = new EthWalletKey(); |
|
|
|
Date date = new Date(); |
|
|
|
Date date = new Date(); |
|
|
|
ethWalletKey.setUserOpenId(userOpenId); |
|
|
|
ethWalletKey.setUserOpenId(userOpenId); |
|
|
|
Web3jWalletDTO wallet = walletWeb3j.creationEthWallet("123456"); |
|
|
|
// Web3jWalletDTO wallet = walletWeb3j.creationEthWallet("123456");
|
|
|
|
ethWalletKey.setAddr(wallet.getAddr()); |
|
|
|
// ethWalletKey.setAddr(wallet.getAddr());
|
|
|
|
ethWalletKey.setPrivateKey(RSACoderUtils.encryptPassword(wallet.getPrivateKey())); // 私钥加密
|
|
|
|
// ethWalletKey.setPrivateKey(RSACoderUtils.encryptPassword(wallet.getPrivateKey())); // 私钥加密
|
|
|
|
|
|
|
|
ethWalletKey.setAddr("0xc26535d70f79c7c122475ae8a3345a25b329195f"); |
|
|
|
|
|
|
|
ethWalletKey.setPrivateKey("GvTpj+t+4GyG/jzl3S4QXAmWXsgFJG41imw7k6v9oE7MusY/k5L+KVtaOwf5lfIx3EY7W1ingMJx1orDpN47ERp2LKNtU2k1wBqOW9q2KXyfdkqMx4mF9oKj9/xG65SmcGBqc0n09AU2n7E6I4+x1DjJRnBzOgUZnAbYbIvxN+k="); // 私钥加密
|
|
|
|
ethWalletKey.setUpdateTime(date); |
|
|
|
ethWalletKey.setUpdateTime(date); |
|
|
|
ethWalletKey.setCreateTime(date); |
|
|
|
ethWalletKey.setCreateTime(date); |
|
|
|
int row = ethWalletKeyMapper.insertSelective(ethWalletKey); |
|
|
|
int row = ethWalletKeyMapper.insertSelective(ethWalletKey); |
|
|
|