Skip to Content
WalletSeamless WalletRequest Signature

Request signature

The Sportsbook BE can sign every request it sends to your wallet endpoints, so your wallet can verify that a request really comes from GR8 Tech and was not modified in transit. Signatures follow the standard RFC 9421 — HTTP Message Signatures .

Signing applies to all three wallet endpoints: get-user-balance, perform-transaction and get-transaction-by-id.

Enabling signatures

Note

Signing requests is optional and is disabled by default, but highly advised.

To enable it, send a configuration request to your GR8 Tech manager with the following text:

Hi, we want to verify wallet request signatures. Please send the request signature verification key to email <your-email>. Environment: staging/production Brands: <Brand 1, Brand N...>
  • List every brand you want signed. To enable signing on all brands, list all of them.
  • If your platform cannot verify EdDSA signatures, say so in the request and we will offer another supported algorithm. If none of them suits you, raise a development request.

As soon as you receive the key, every request to the listed brands carries the Signature-Input and Signature headers.

Signed components

The following components are covered by the signature, as defined in RFC 9421:

ComponentDescription
@methodHTTP method of the request message
@target-uriTarget URI of the request, assembled from all available URI components
content-digestSHA-256 hash of the payload, as defined in RFC 9530 — Digest Fields 

Headers

Signature-Input

Lists the covered components and the signature parameters:

Signature-Input: sig=("@method" "@target-uri" "content-digest");created=<CREATION-TIMESTAMP>;keyid="<KEY-ID>";nonce="<RANDOM-NONCE>";alg="ed25519"
ParameterDescription
createdUNIX timestamp of the moment the signature was created
keyidIdentifier of the key the request was signed with
nonceRandom value unique to the request
algSignature algorithm — ed25519 (EdDSA) by default

Signature

Carries the signature itself, Base64-encoded:

Signature: sig=:e8UJ5wMiRaonlth5ERtE8GIiEH7Akcr493nQ07VPNo6y3qvjdKt0fo8VHO8xXDjmtYoatGYBGJVlMfIp06eVMEyNW2I4vN7XDAz7m5v1108vGzaDljrd0H8+SJ28g7bzn6h2xeL/8q+qUwahWA/JmC8aOC9iVnwbOKCc0WSrLgWQwTY6VLp42Qt7jjhYT5W7/wCvfK9A1VmHH1lJXsV873Z6hpxesd50PSmO+xaNeYvDLvVdZlhtw5PCtUYzKjHqwmaQ6DEuM8udRjYsoNqp2xZKcuCO1nKc0V3RjpqMZLuuyVbHDAbCzr0pg2d2VM/OC33JAU7meEjjaNz+d7LWPg==:

Signatures on retried requests

Every request is signed anew, including retries. When the Sportsbook BE retries a request with the same transaction id (see Rollback and Retry Logic), the retry carries new Signature-Input and Signature headers — a new created timestamp, a new nonce and therefore a new signature value.

What this means for your wallet:

  • Verify every request on its own. Do not reject a retry because its created or nonce differs from the original request’s.
  • Do not use Signature, nonce or created to detect duplicates. Idempotency is keyed on the transaction id only.

Verifying a request

To verify the Signature header, use the key id, algorithm and nonce from the Signature-Input header together with the verification key you received. The full procedure is in RFC 9421 — Verifying a Signature .