Skip to content

Core / XDR

hash

Computes the SHA-256 hash of the given data.

hash(data: string | Uint8Array<ArrayBufferLike>): Uint8Array

Parameters

  • datastring | Uint8Array<ArrayBufferLike> (required) — the data to hash

Source: src/base/hashing.ts:9