uploadPublicKey

fun uploadPublicKey(baseUrl: String, armoredPublic: ByteArray)

Uploads armored public key material to baseUrl.

Attempts VKS JSON upload first (/vks/v1/upload); falls back to HKP /pks/add when VKS is unavailable or rejects the request.

Parameters

baseUrl

Keyserver base URL.

armoredPublic

UTF-8 armored public key block.

Throws

if both VKS and HKP upload fail.

if armoredPublic is not armored public key material.