merged pubkey registration from @vx fork

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>