CaptainHook.Signature (captain_hook v1.0.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

parse_signature_header(signature, schema)

View Source

Specs

parse_signature_header(binary(), binary()) ::
  {:error, binary()} | {:ok, timestamp :: integer(), hashes :: [binary()]}
Link to this function

sign(payload, timestamp, secrets)

View Source

Specs

sign(binary(), integer(), binary() | [binary()]) :: binary()
Link to this function

verify(header, payload, secret, opts \\ [])

View Source

Specs

verify(binary(), binary(), binary(), keyword()) :: :ok | {:error, binary()}