Skip to main content

ed25519_dpop_signing_input

Function ed25519_dpop_signing_input 

Source
pub fn ed25519_dpop_signing_input(
    pubkey: &[u8; 32],
    htm: &str,
    htu: &str,
    iat: i64,
    jti: &str,
    ath: Option<&str>,
    nonce: Option<&str>,
) -> Result<(String, String)>
Expand description

Build the RFC 9449 DPoP JWT signing input (header.payload) for an Ed25519 key. The caller signs signing_input with the private key and assembles the proof via assemble_dpop_proof.

Pure / native-testable: the wasm32 glue calls this, invokes the JS sign callback, and assembles. Keeping the construction here means the htm/htu/ iat/jti/ath/nonce/alg/jwk shape is tested once, natively, rather than only through wasm32-only glue.