@tabcat/zzzync
    Preparing search index...

    Function dialZzzync

    • Dial a peer on ZZZYNC_PUSH_PROTOCOL_ID and run the zzzync dialer over the opened stream. peerId is both the dial target and the handler peer id the challenge is bound to.

      Parameters

      • libp2p: Pick<Libp2p, "dialProtocol">
      • peerId: PeerId
      • exporter: Pick<Car, "export">
      • result: PushInput
      • sign:
            | (
                (
                    data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
                    options?: AbortOptions,
                ) => Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            )
            | (
                (
                    data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
                    options?: AbortOptions,
                ) => Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            )
        • (
              data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
              options?: AbortOptions,
          ) => Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            • (
                  data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
                  options?: AbortOptions,
              ): Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            • Sign the passed data with this private key and return the signature for later verification

              Parameters

              • data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>
              • Optionaloptions: AbortOptions

              Returns Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>

        • (
              data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
              options?: AbortOptions,
          ) => Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            • (
                  data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>,
                  options?: AbortOptions,
              ): Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>
            • Sign the passed data with this private key and return the signature for later verification

              Parameters

              • data: Uint8Array<ArrayBufferLike> | Uint8ArrayList<ArrayBufferLike>
              • Optionaloptions: AbortOptions

              Returns Uint8Array<ArrayBufferLike> | Promise<Uint8Array<ArrayBufferLike>>

      • options: DialOptions = {}

      Returns Promise<void>