Sign and Broadcast Tx
Requirements
-
Linux Workstation (online machine)
- Any internet connected computer with a Linux shell will suffice
-
Air-gapped machine
-
Trove SD Card
Procedure
Online Machine: Acquire Nonce
1.Turn on online linux workstation
-
Retreive Trove SD card
-
Get the nonce address for the address you are sending from by checking the appropriate <namespace>/<coin>/ directory.
-
e.g
trove/<namespace>/<coin>/0-na.txt
-
Set the nonce address variable:
$ nonce_address="$(cat trove/<namespace>/<coin>/<account_id>-na.txt)"
-
-
Set
ICEPICK_DATA_DIRECTORY
:Look for the SD card device name (
<device_name>
) in the output of thelsblk
command. It will typically be listed as/dev/sdX
or/dev/mmcblk<num>
, where X is a letter (e.g.,/dev/sdb
,/dev/sdc
). You can identify it by its size or by checking if it has a partition (like/dev/sdX1
)- Mount the device using:
sudo mount /dev/<device_name> /media
$ export ICEPICK_DATA_DIRECTORY=/media/external/
- Mount the device using:
-
set
ICEPICK_CONFIG_FILE
$ export ICEPICK_CONFIG_FILE=<path_to_icepick_repo>/icepick.toml`
-
Run the command:
$ icepick workflow sol broadcast --nonce-address=$nonce_address
-
Await completion message before removing Trove SD card
-
This command will set the computer into "awaiting mode", which will broadcast the signed transaction from the SD card once it's plugged back in after the workflow payloads are signed on the offline machine
-
Offline Machine: Create and Sign Transaction
-
Retrieve AirgapOS SD card and plug it into the air-gapped machine
-
Boot the computer
-
Unplug the AirgapOS SD card and place it in High Visibility Storage
-
Retrieve Trove SD card from High Visibility Storage and plug it into the air-gapped machine
-
Look for the SD card device name (
<device_name>
) in the output of thelsblk
command. It will typically be listed as/dev/sdX
or/dev/mmcblk<num>
, where X is a letter (e.g.,/dev/sdb
,/dev/sdc
). You can identify it by its size or by checking if it has a partition (like/dev/sdX1
)- Mount the device using:
sudo mount /dev/<device_name> /media
- Mount the device using:
-
Start Keyfork using the relevant Shardfile:
$ keyfork recover shard --daemon /media/<device_name>/trove/<namespace>/shardfile.asc
- The Shardfile may be named something else. Use
find /media/<device_name>/vaults -type f -name '*shardfile*.asc'
to list all files.
- The Shardfile may be named something else. Use
-
Follow on screen prompts
-
Set
ICEPICK_DATA_DIRECTORY
:$ export ICEPICK_DATA_DIRECTORY=/media/<device_name>
-
Run the
icepick
command with the transaction payload- The payload is located in the appropriate vault location (e.g /media/<device_name>/trove/
/ceremonies/ ...)
$ icepick workflow --run-quorum <payload>.json --shardfile /media/<device_name>/trove/<namespace>/shardfile.asc
- Follow on screen prompts
- The payload is located in the appropriate vault location (e.g /media/<device_name>/trove/
-
Unplug Trove SD card
Broadcast Transaction: Online Machine
-
Plug Trove SD card into online machine
-
The still running broadcast command on the online machine will broadcast the transaction automatically
-
The url that's found in the response after a successful broadcast should be reviewed and committed to the ceremony repository
-
Remove the transaction files in
ICEPICK_DATA_DIRECTORY
$ rm $ICEPICK_DATA_DIRECTORY/transaction.json $ rm $ICEPICK_DATA_DIRECTORY/nonce.json
-
Unplug Trove SD card
Repeat
- You may repeat previous steps as many times as necessary to process all workflow payloads
Finalization
-
Shut down online machine
-
Shut down the air gapped machine
Sealing
-
Gather all the original items that were in the air-gapped bundle:
-
Air-gapped computer
-
AirgapOS SD card
Vacuum sealing based tamper proofing
-
Insert object(s) into plastic sealing bag
-
Fill bag with enough plastic beads that most of the object is surrounded
-
Use vacuum sealer to remove air from the bag until the beads are no longer able to move
-
Take photographs of both sides of the sealed object using both the digital and polaroid camera
-
Date and sign the polaroid photographs and store them in a local lock box
-
Take the SD card to an online connected device, ensuring continued dual custody, and commit the tamper evidence photographs to a repository. If two individuals are present, have one create a PR with a signed commit, and the other do a signed merge commit.
Safe based tamper proofing
-
Place items into safe
-
Ensure the safe is properly locked
-