Running a check
Command-line options, which test account each check uses, and how long a run takes.
sep56-vault-guard
SIGNATURE
sep56-vault-guard [--vault <CONTRACT_ADDRESS>] [--output text|json|markdown] [--status-file <PATH>]PARAMETERS
--vaultstringoptional- Contract address of the vault to check (starts with
C, 56 characters). Defaults to the project's reference vaultCAMDXP2QABDOUMU6F6WPQ5HVKVXCD4MOWPLBZF4KHIBXAD7NT3AGYTNF. --outputtext | json | markdownoptional- Output format. Default
text.jsonprints an array for programs.markdownprints a report you can save as a.mdfile (since v0.5.0). --status-filepathoptional- Writes a JSON snapshot that is updated as each check starts and finishes. Reporting only; it never changes a result.
--versionflagoptional- Prints the version, for example
sep56-vault-guard 0.5.0. --helpflagoptional- Prints usage.
EXAMPLE
# Reference vault, text output
./sep56-vault-guard
# A specific vault, JSON output
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --output json
# A specific vault, Markdown report
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --output markdown > report.md
# With a live status file
./sep56-vault-guard --vault <CONTRACT_ADDRESS> --status-file ./status.jsonWhich account each check uses
The 7 conformance checks run one after another on the target vault. The 4 security checks run at the same time as each other and as the conformance sequence, so each has its own account.
| Account | Check |
|---|---|
alice | all 7 conformance checks (on the target vault) |
grace, bob | donation_attack (attacker, victim) |
carol | overflow_protection |
dave | rounding_direction |
erin, frank | access_control_probing (owner, operator) |
Run time and network
A run usually takes about a minute, sometimes longer. Every chain interaction calls stellar contract invoke or stellar contract deploy against Testnet.
Verified
The network is fixed to Testnet in cli/src/rpc.rs. There is no flag for another network.
Do not run two checks at the same time with the same identities: transactions from one account race on sequence numbers, and the failures would be about the collision, not about the vault.