Implement signature verification.