Skip to content

Add examples for signature #125

@Rossb0b

Description

@Rossb0b

Actually, there is only one example of how to deal with our generated signature and this one is in JS.

  const { headers, body } = req;

  const { signature, date } = headers;

  const generatedSignature = createHmac("sha256", kSecret)
    .update(JSON.stringify(body) + date)
    .digest("hex");

  if (signature !== generatedSignature) {
    throw new Error("Wrong signature");
  }

It would be great to have this particular code in those languages :

  • C++
  • Java
  • Python

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions