Where an unregistered party is involved in a transaction, the onus of generation of the E-way Bill is shifted to the registered party.
Where none of the parties to the transaction are registered, then either of the parties needs to register with GSTN or the transporter needs to generate the E-way Bill.