formatSignatures

1function formatSignatures(signatures, usingMaxValues): `0x${string}`;

Defined in: account-kit/smart-contracts/src/msca/plugins/multisig/utils/formatSignatures.ts:15

Formats a collection of Signature objects into a single aggregated signature. The format is in the form of EOA_SIGS | CONTRACT_SIG_DATAS. The signatures are ordered by signer address. The EOA SIGS contain the 65 signautre data for EOA signers and 65 bytes containing SIGNER | OFFSET | V for contract signers. The OFFSET is used to fetch the signature data from the CONTRACT_SIG_DATAS.

Parameters

ParameterTypeDefault valueDescription

signatures

Signature[]

undefined

the array of Signature objects to combine into the correct aggregated signature format excluding the upper limits

usingMaxValues

boolean

false

a boolean indicating wether or not the UserOperation is using the UPPER_LIMIT for the gas and fee values

Returns

`0x${string}`

the Hex representation of the signature