Function truelayer_signing::sign_with_pem
source · pub fn sign_with_pem<'a>(
kid: &'a str,
private_key_pem: &'a [u8]
) -> SignerBuilder<'a, &'a str, &'a [u8], Unset, Unset, Unset>
Expand description
Start building a request Tl-Signature
header value using private key
pem data & the key’s kid
.
§Example
let tl_signature = truelayer_signing::sign_with_pem(kid, private_key)
.method(truelayer_signing::Method::Post)
.path("/payouts")
.header("Idempotency-Key", idempotency_key)
.body(body)
.build_signer()
.sign()?;