@JvmStatic protected fun createSignature(packetType: PacketType, keyPair: KeyPair, encoder: (RLPWriter) -> Unit): SigHash