restore get_master_public_key function. fixes #668