This is an implementation of the WireGuard® for ESP32 Arduino. Almost all of this code is based on the WireGuard Implementation for lwIP, but some potion of the code is adjusted to build with ESP32 ...
Additional circuitry required. One Diode (I use 1n4004) - pole/cathode at tx pin other at rx pin. 4k7 Ohm resistor between rx and 5V (3.3V also works). Same at the other microcontroller but you don't ...