Type Alias PayloadSigner

PayloadSigner: ((payload: Bytes, secret?: any, provider?: Web3ZKsyncL2) => string)

Signs various types of payloads, optionally using a some kind of secret.

Type declaration

    • (payload, secret?, provider?): string
    • Parameters

      • payload: Bytes

        The payload that needs to be sign already populated transaction to sign.

      • Optionalsecret: any

        The secret used for signing the payload.

      • Optionalprovider: Web3ZKsyncL2

        The provider is used to fetch data from the network if it is required for signing.

      Returns string

      A promise that resolves to the serialized signature in hexadecimal format.