SignDigestFn: (digest: Uint8Array) => Uint8Array

Callback type for external signing functions.

Receives a 32-byte digest and must return a 64-byte Fuel compact signature (r[32] + s[32] with recovery ID embedded in the MSB of s[0]).

Use toFuelCompactSignature to convert standard (r, s, recoveryId) components to the expected format.

Type declaration

    • (digest: Uint8Array): Uint8Array
    • Parameters

      • digest: Uint8Array

      Returns Uint8Array