Wraps a private key; prefer DpopKey.generate, DpopKey.load or loadDpopKey.
A P-256 or Ed25519 private key.
ReadonlyalgThe JWS alg of the proofs.
ReadonlyjktThe RFC 7638 thumbprint of the public key.
ReadonlypublicThe public JWK without private members.
Returns the JWS signature of data: 64-byte R || S for ES256, raw Ed25519 for EdDSA.
The JWS signing input.
The signature.
Returns alg and jkt only, so a key never lands in JSON output.
Returns DpopKey(<alg>, jkt=<thumbprint>), never the key.
StaticgenerateCreates a new key; with path it is written there as a PKCS#8 PEM of mode 0600.
path of a new file (must not exist; opened with O_EXCL) and alg
(default ES256).
The key.
StaticloadLoads a key that DpopKey.generate wrote (or any file loadDpopKey reads).
The key file.
The key.
A DPoP key held in memory:
ES256(P-256) orEdDSA(Ed25519). Use DpopKey.generate once and DpopKey.load afterwards; DpopKey.jkt is the thumbprint the owner enters atcreateToken(dpop_jkt). A key store (for example an HSM) implements DpopSigner instead.