KEYGEN: we need the pubkey unshifted
KEYGEN: support import/export of keys