verifying and signing updated

functions moved to trust cloud.c