The static update_sigs() function could use some basic unit tests so that it can be safely refactored.
update_sigs()