Externally verifiable workers

I’m considering building a p2p type system atop of cloudflare workers, where semi-trusted workers can talk to each other. It would be nice if there was a way for them to verify the same code is deployed by person A as person B, by publicly verifying the checksums of the deployed workers that they are exchanging with.

The only way I have imagined so far for doing this without built in support, is for there to be a trusted service which person A and person B both share their cloudflare api keys with, which then verifies the deployed code is the same.