organize creation of base_string and signed signature, no functional change