Skip to content

signEndorsement

function signEndorsement(client, options): Promise<`0x${string}`>;

Defined in: packages/synapse-core/src/utils/cert.ts:44

Signs an endorsement certificate for a specific provider

ParameterTypeDescription
clientClient<Transport, Chain, Account>The client to use to sign the message
optionsSignCertOptionsnonce (randomised if null), not after and who to sign it for

Promise<`0x${string}`>

encoded certificate data abiEncodePacked([nonce, notAfter, signature]), the provider id is implicit by where it will get placed in registry.