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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain, Account> | The client to use to sign the message |
options | SignCertOptions | nonce (randomised if null), not after and who to sign it for |
Returns
Section titled “Returns”Promise<`0x${string}`>
encoded certificate data abiEncodePacked([nonce, notAfter, signature]), the provider id is implicit by where it will get placed in registry.