mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-28 08:33:13 +00:00
* feat: add basic commands for communicating with keycard * initialize changes * reorganization * add script file for easier wallet access * update commands * fixes * fixed load for non continuous run * Updates for signatures with keycard * fix BIP-340 signatures for fixed sized messages * fmt * refactor and add pin support to program facades * fix unit test * fixes * Revert "fixes" This reverts commit 41f34f4ff4145b7abb60fd9bec168ae4b60f23b4. * fixes * fixes * Removed privacy keycard calls * Revert "Removed privacy keycard calls" This reverts commit d70ef505a1f40b87159099761f5fce5a31e3f17b. * Add domain separators * Removed privacy txs for keycard * CI fixes * CI fixes * addressed some comments * fix ci * initialize branch * ci fixes * fix integration test issue and updated keycard firmware * addressed more comments * fixed deny * remove keycard-py * fixed from earlier merge * add hash_message tests * add test * fix deny * CI fixes * fixed integration tests * Update public.rs * update artifacts * privacy command fixes * ci and comments * addressed comments * comment fixes * fixes from merging main * adding support to other programs * expanded support * ci fixes * ci and add private account keys test * some fixes and setup notes * Ci fixes * ci fixes * update key paths to avoid collisions in tests * added separated files for keycard_tests_2.sh * first round of comments * Revert "Merge branch 'main' into marvin/keycard-commands" This reverts commit 3fce53f663a3996938dddf77680854570063ca21, reversing changes made to e7b42a5177641455a8917bd2e29db20afd9690e5. * python comments * addressed comments * compile error fixed * fix artifacts * fix main merge error * adjust signer logic workflow * updating logic * fmt * refactored * clippy fix * minor fix * addressing comments * minor fix * ci fix * addressed deferred comments * clean up * minor cleanup * ci fixes * fmt fix * feat!(wallet): Merged `SigningGroup` with `AccountManager` (#500) * feat: account manager extension * feat(wallet): added unified way of sending public transactions to all facades * fix(wallet): no sign option added * fix(deny): deny fix * fix(wallet): suggestion 1 * fix(wallet): suggestion fix 1 * feat!: Add new path for externally provided seed to the circuit. BREAKING CHANGE: add identity variants to the circuit and change semantics for `Claim::Authorized` for private PDAs * feat(ci): use separate job per each integration tests module * feat(ci): cache rust artifacts * feat(ci): build integration tests binary once and reuse it * fix(wallet): fmt * ci: add bench-regression workflow with criterion-compare for crypto_primitives_bench * fix(wallet): merge postfix * feat!(wallet): SigningGroup merged with AccountManager * fix(ci): deny and artifacts fix * fix(deny): deny fix * fix keycard and lint --------- Co-authored-by: Sergio Chouhy <sergio.chouhy@gmail.com> Co-authored-by: Daniil Polyakov <arjentix@gmail.com> Co-authored-by: Moudy <m.ellaz@hotmail.com> Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com> Co-authored-by: jonesmarvin8 <83104039+jonesmarvin8@users.noreply.github.com> * addressed comments * minor comments * Rebase to main * CI fixes --------- Co-authored-by: Pravdyvy <46261001+Pravdyvy@users.noreply.github.com> Co-authored-by: Sergio Chouhy <sergio.chouhy@gmail.com> Co-authored-by: Daniil Polyakov <arjentix@gmail.com> Co-authored-by: Moudy <m.ellaz@hotmail.com> Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
118 lines
3.8 KiB
Bash
Executable File
118 lines
3.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Power-recovery variant of keycard_tests.sh.
|
|
#
|
|
# Forces a card power cycle before each keycard-backed wallet command to verify
|
|
# commands survive mid-session power loss.
|
|
|
|
source venv/bin/activate
|
|
|
|
export KEYCARD_PIN=111111
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
unpower() {
|
|
python "$SCRIPT_DIR/force_unpower.py"
|
|
}
|
|
|
|
echo "Test: wallet keycard available"
|
|
wallet keycard available
|
|
|
|
echo ""
|
|
echo "Test: wallet keycard load (after power cycle)"
|
|
export KEYCARD_MNEMONIC="fashion degree mountain wool question damp current pond grow dolphin chronic then"
|
|
unpower
|
|
wallet keycard load
|
|
unset KEYCARD_MNEMONIC
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer init --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet auth-transfer init --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet pinata claim --to \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet pinata claim --to "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer init and send between two keycard accounts (after power cycle)"
|
|
unpower
|
|
wallet auth-transfer init --account-id "m/44'/60'/0'/0/1"
|
|
unpower
|
|
wallet auth-transfer send --amount 40 --from "m/44'/60'/0'/0/0" --to "m/44'/60'/0'/0/1"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/1\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/1"
|
|
|
|
echo ""
|
|
echo "Test: create local wallet account"
|
|
LOCAL_ACCOUNT_ID=$(wallet account new public 2>&1 | grep -oP '(?<=Public/)\S+')
|
|
echo "Created local account: Public/${LOCAL_ACCOUNT_ID}"
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer init local account"
|
|
wallet auth-transfer init --account-id "Public/${LOCAL_ACCOUNT_ID}"
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer send from keycard to local account (after power cycle)"
|
|
unpower
|
|
wallet auth-transfer send --amount 10 --from "m/44'/60'/0'/0/0" --to "Public/${LOCAL_ACCOUNT_ID}"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"Public/${LOCAL_ACCOUNT_ID}\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "Public/${LOCAL_ACCOUNT_ID}"
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer send from local account to keycard account (after power cycle)"
|
|
unpower
|
|
wallet auth-transfer send --amount 10 --from "Public/${LOCAL_ACCOUNT_ID}" --to "m/44'/60'/0'/0/1"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"Public/${LOCAL_ACCOUNT_ID}\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "Public/${LOCAL_ACCOUNT_ID}"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/1\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/1"
|
|
|
|
echo ""
|
|
echo "Test: wallet auth-transfer send from keycard to foreign account (after power cycle)"
|
|
wallet account get --account-id "Public/7wHg9sbJwc6h3NP1S9bekfAzB8CHifEcxKswCKUt3YQo"
|
|
unpower
|
|
wallet auth-transfer send --amount 10 --from "m/44'/60'/0'/0/0" --to "Public/7wHg9sbJwc6h3NP1S9bekfAzB8CHifEcxKswCKUt3YQo"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get --account-id \"m/44'/60'/0'/0/0\" (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "m/44'/60'/0'/0/0"
|
|
|
|
echo ""
|
|
echo "Test: wallet account get foreign account (after power cycle)"
|
|
unpower
|
|
wallet account get --account-id "Public/7wHg9sbJwc6h3NP1S9bekfAzB8CHifEcxKswCKUt3YQo"
|