Shift around functions so we have clear Pubring and Secring classes.