Crate truelayer_signing
source · [−]Expand description
Produce & verify TrueLayer API Tl-Signature
request headers.
Example
// `Tl-Signature` value to send with the request.
let tl_signature = truelayer_signing::sign_with_pem(kid, private_key)
.method("POST")
.path("/payouts")
.header("Idempotency-Key", idempotency_key)
.body(body)
.sign()?;
Structs
Tl-Signature
header.
Builder to generate a Tl-Signature
header value using a private key.
Builder to verify a request against a Tl-Signature
header.
Enums
Sign/verification error.
Functions
Extract JwsHeader
info from a Tl-Signature
header value.
Start building a request Tl-Signature
header value using private key
pem data & the key’s kid
.
Start building a Tl-Signature
header verifier using public key JWKs JSON response data.
Start building a Tl-Signature
header verifier using public key pem data.