Map<String, dynamic> jsonMap({bool asHex = false}) { print('checkpoint_beacon'); return { "checkpoint": checkpoint, "hashPrevBlock": (asHex) ? hashPrevBlock.hex : hashPrevBlock.bytes, }; }