wg-ip is a tool to assign ip addresses derived from the public keys to wireguard interfaces. See https://lists.zx2c4.com/pipermail/wireguard/2018-April/002593.html