Currently, it appears we serialize checksums using the default derived implementation for lists of bytes:
Leo The program checksum is: '[167u8, 156u8, 237u8, 201u8, 116u8, 83u8, 250u8, 38u8, 129u8, 210u8, 60u8, 95u8, 245u8, 200u8, 10u8, 21u8, 14u8, 3u8, 230u8, 145u8, 106u8, 235u8, 21u8, 146u8, 115u8, 92u8, 241u8, 22u8, 235u8, 234u8, 119u8, 58u8]'.
Context
Currently, it appears we serialize checksums using the default derived implementation for lists of bytes:
These are unwieldy and add a lot of noise to the
leoCLI output.Possible Formats
Ideally these would be formatted as one of the following:
chksum1...) - most consistent with Aleo's ecosystem conventions for public-facing data. e.g.<value>field. e.g.Implementation
Provide simple hand-rolled
SerializeandDeserializeimplementations for the checksum type that check theis_human_readableflag on the serializer, and use this to select between the encoded string or raw forms.