split signedheartbeat functions and structs into its own file