How the key pair is produced
The OpenPGP.js library runs in the page and builds a key around your inputs: a user ID (name and email), the chosen algorithm, and a size. RSA generation finds primes and computes the public modulus and private exponents; elliptic-curve generation (EdDSA or ECDSA) derives a private scalar and a public curve point. The key material is then serialized into the ASCII-armored OpenPGP format defined by RFC 4880.