reformat signing code
remove private/public prefixes from api