I was working on the recent TON context and encountered a roadblock. I synchronized the key blocks every 4 hours, but to confirm a block, I need to validate its signatures. I compiled the node IDs of the validators using their public keys and a predefined prefix, retrieved their weights, and attempted to validate the signatures to calculate the total weight to compare it with 2/3 total weight of all validators. However, I was surprised to discover that the verify_signature function in FunC only supports 256-bit hashes, whereas the message I need to validate is 544 bits.
3 Likes