These docs are for v1.3.0. Click to read the latest docs for v1.6.

sha256

Hashes data using sha256 and stores result in memory pointed to by hash.

Parameters

  • data - Data you want to hash

  • length - Data length

  • hash - Hash pointer

Example

checksum calc_hash;
sha256( data, length, &calc_hash );
eos_assert( calc_hash == hash, "invalid hash" );