rootpublickey becomes root_public_key