Function createUploadAuth

  • Creates an upload auth event

    Parameters

    • signer: Signer

      the signer to use for signing the event

    • blobsOrHashes: string | string[] | UploadType | UploadType[]

      one or an array of sha256 hashes

    • message: string = "Upload Blob"

      A human readable explanation of what the auth token will be used for

    • expiration: number = ...

      The expiration time in seconds

    Returns Promise<SignedEvent>