Skip to content
← All questions

How is an IPFS hash sent to the watermarking DP module to obtain a newHash?

The original IPFS hash is used as the 'queryId' path parameter in a POST request to the endpoint '/ipfs/dataset/{queryId}'. Executing this request sends the hash to the watermarking module, which returns a JSON response containing a 'newHash' identifier.

Conditions

  • Use the previously obtained IPFS hash as 'queryId'.
  • The request method is POST.
  • The response includes 'newHash' and other metadata fields.

Reasoning, step by step

  1. Start from the retrieved IPFS dataset response, where the original hash ID is already known.
  2. Call the POST endpoint '/ipfs/dataset/{queryId}' with the original IPFS hash to send it to the watermarking DP module.
  3. Read the response body and identify the returned 'newHash' value.

Example

A POST endpoint takes the same IPFS hash as 'queryId' and submits it to a watermarking module. Executing the request returns a JSON object containing metadata and a 'newHash', indicating that the original hash has been transformed into a watermark-related identifier.

Common misconceptions

  • Thinking the newHash is the original IPFS hash; it is a new identifier returned after watermarking.

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Meet the concept

↗
Know when to use it

↗
Meet the concept

↗
Know when to use it

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.