public async Task <WalletCreationResult> CreateWalletAsync() { KeyModelResponse response = await _internalSignServiceCaller.CreateWalletAsync(); string encryptedPrivateKey = _encryptionService.EncryptAesString(response.PrivateKey, _passwordBytes); await _walletRepository.SaveAsync(new Wallet() { EncryptedPrivateKey = encryptedPrivateKey, PublicAddress = response.PublicAddress, }); return(new WalletCreationResult() { PublicAddress = response.PublicAddress, }); }