function hash256(buffer) {
  return sha256(sha256(buffer));
}
Computes the double SHA-256 hash of the given buffer.

@param buffer - The input data to be hashed.
@returns The double SHA-256 hash of the input buffer.