Genesis builder and the Stardust Objects Snapshot
The Stardust Objects Snapshot is a BCS-encoded vector of Objects
that represent the migrated state.
The migration can happen from a ledger compliant with the Stardust protocol. In particular, in order to create a Stardust Objects Snapshot, a Hornet Full Snapshot is required.
iota-genesis-builder iota --address-swap-split-map-path <address swap split map file path> --address-swap-map-path <address swap map file path> --snapshot-path <hornet full snapshot file path> --target-network <target network name>
Command flags:
--address-swap-split-map-path
: the path of an Address Swap Split Map, e.g.,./address_swap_split.csv
--address-swap-map-path
: the path of an Address Swap Map, e.g.,./address_swap.csv
--snapshot-path
: the path of the Hornet full snapshot e.g.,./full_snapshot_latest.bin
--target-network
: a string that generates the salt used for hashing the genesis transaction and obtaining its transaction id, e.g.,mainnet
Additionally:
--disable_global_snapshot_verification
: flag used to disable the verification of a Hornet snapshot, namely, if true, this skips the check that the Hornet snapshot must be a full snapshot; thus, for a correct migration, this flag must be false.
This command generates a file named stardust_object_snapshot.bin
.