signedKeyPackagePayload method
This key package wrapped in an APKAM-signed envelope — the value to store
at metadata.keyPackage when the package rides enroll:request.
A key package is an encapsulation target: whoever's enc public key ends
up here is who the atSign's other clients seal their secrets to. So it is
advertised signed and verified against this enrollment's _apsk before
the key is treated as this enrollment's; without that the target is only
as trustworthy as whatever served the enrollment record.
Throws StateError until register has generated the enc keypair.
Implementation
Future<SignedEnvelope> signedKeyPackagePayload() async =>
await wrapAndSign(myKeyPackage.toJson(), type: EnvelopeType.keyPackage);