pub trait ChecksumGenerator { // Required method fn checksum(&self, creator: &Addr, code_id: u64) -> Checksum; }
This trait defines a method to calculate checksum based on the creator’s address and a unique code identifier.
Calculates the checksum for a given contract’s code creator and code identifier. Returns a hexadecimal binary representation of the calculated checksum. There are no assumptions about the length of the calculated checksum.