Creation of the plaintext signature, moved some of the signature stuff into a parent class and changed the typehint in Header