SubkeyAdder

Adds a subkey to an existing secret key ring.

Flow mirrors OpenKeychain PgpKeyOperation.modifySecretKeyRing step 5 (SaveKeyringParcel.SubkeyAddcreateKeygenerateSubkeyBindingSignaturePGPSecretKeyRing.insertSecretKey).

BC note: stock bcpg has no addSubkeyBindingCertification; attach the SUBKEY_BINDING certification with PGPPublicKey.addCertification on the subkey material (same effect as OpenKeychain's patched helper).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a subkey described by request and returns the updated armored secret key ring.