Just below that example in the docs there is a description for the
The task specification, also known as “task brief”, is a description or document that outlines the work required to be considered sufficient for a task payout. The
specificationHash can be any arbitrary hash string (32 bytes) but the
specificationHash was specially designed to support an IPFS content hash. See Using IPFS for more information about using an IPFS content hash.
The idea with the
specificationHash is that you can customize what information you want to store as the specification. The Using IPFS link provides some more information:
A natural way to use the
deliverableHash properties within a task is to point to a file hosted on IPFS. This leaves open the format for the task specification (the description of the work to be done) and the task deliverable (the work done) and provides the opportunity to use text files, PDFs, or other forms of media.
A simple example can be found here in the
colony-example package, which creates an object with two properties (
description) and then saves that object to IPFS (see here), and stores the IPFS hash as the
specificationHash (see here).