Updated pubkey plugin to the new builder API