Signer toSigner({ bool includePubKey = false, bool includeSig = true, }) { return Signer( pubKey: includePubKey ? pubKey : null, sig: includeSig ? sig : null, ); }