Use updated interface for setting priv key