restore from master public key