Make sure airgapped wallet works locally

This commit is contained in:
JST5000
2023-06-08 15:16:08 -07:00
parent 7d0c298f12
commit 3bb6508907
3 changed files with 5 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ from xrpl.core import keypairs
from xrpl.utils import xrp_to_drops
from xrpl.models.transactions import Payment
from xrpl.transaction import safe_sign_transaction
from xrpl.wallet.main import Wallet
def create_wallet(silent: False):
@@ -63,7 +64,7 @@ def sign_transaction(xrp_amount, destination, ledger_seq, wallet_seq, password):
seed = crypt.decrypt(seed)
print("4. Initializing wallet using decrypted private key")
_wallet = wallet.Wallet.from_seed(seed=seed.decode())
_wallet = Wallet.from_seed(seed=seed.decode())
validated_seq = ledger_seq

View File

@@ -8,7 +8,7 @@ from pathlib import Path, PureWindowsPath, PurePath
from cryptography.fernet import Fernet
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from xrpl import wallet
from xrpl.wallet import Wallet
from xrpl.core import keypairs
from xrpl.utils import xrp_to_drops
from xrpl.models.transactions import Payment
@@ -58,7 +58,7 @@ def sign_transaction(_xrp_amount, _destination, _ledger_seq, _wallet_seq, passwo
# Decrypts the wallet's private key
_seed = crypt.decrypt(_seed)
_wallet = wallet.Wallet.from_seed(seed=_seed.decode())
_wallet = Wallet.from_seed(seed=_seed.decode())
validated_seq = _ledger_seq

View File

@@ -22,4 +22,4 @@ sniffio==1.2.0
sqlparse==0.4.4
typing-extensions==4.2.0
websockets==10.0
xrpl-py==2.0.0beta
xrpl-py==2.0.0