# byte_array.sha256 · Rell standard library · Chromia Docs (concept)

> pure function sha256(): byte_array Calculates the SHA-256 digest (hash) of this byte array. Returns a SHA-256 digest as a byte array of length 32 Since 0.1

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/byte_array/sha256/

FUNCTION

# byte\_array.sha256

```signature
pure function sha256(): byte_array
```

Calculates the SHA-256 digest (hash) of this byte array.

**Returns**

a SHA-256 digest as a byte array of length 32

Since 0.10.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/byte_array/sha256.html)Generated API reference, mirrored from the live docs
