Manifold Signature v0.0.3 ManifoldcoSignature.Signature View Source

Verifies a request signature for the Manifold.co service callbacks.

https://docs.manifold.co/providers#section/Authentication

Link to this section Summary

Types

Endorsement provided as the 3 argument in the x-signature header

The canonized request message to verify

Public key provided as the second argument in the x-signature header

Request signature provied as the first argument in the x-signature header

t()

Functions

Builds a new signature from the provided request data

Validates the signature (t) against the master_key

Link to this section Types

Link to this type canonized_headers() View Source
canonized_headers() :: binary()
Link to this type canonized_method() View Source
canonized_method() :: binary()
Link to this type canonized_query_string() View Source
canonized_query_string() :: binary()
Link to this type endorsement() View Source
endorsement() :: binary()

Endorsement provided as the 3 argument in the x-signature header.

The canonized request message to verify.

Link to this type public_key() View Source
public_key() :: binary()

Public key provided as the second argument in the x-signature header.

Link to this type signature() View Source
signature() :: binary()

Request signature provied as the first argument in the x-signature header.

Link to this type t() View Source
t() :: %ManifoldcoSignature.Signature{
  date: DateTime.t(),
  endorsement: endorsement(),
  message: message(),
  public_key: public_key(),
  signature: signature()
}

Link to this section Functions

Link to this function validate(signature, master_key, opts \\ []) View Source

Validates the signature (t) against the master_key.