Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

domain_sep

domain_sep(s): Uint8Array

Defined in: packages/agent/src/certificate.ts:447

Creates a domain separator for hashing by encoding the input string with its length as a prefix.

string

The input string to encode.

Uint8Array

A Uint8Array containing the encoded domain separator.