Documentation
    Preparing search index...

    Function assertNonce

    • Assert that the input is a Uint8Array.

      Parameters

      • nonce: unknown

        The value to check.

      Returns void

      If nonce is not a Uint8Array.

      import { assertNonce } from 'iso-ucan/utils'
      assertNonce(new Uint8Array([1,2,3])) // ok
      assertNonce('foo') // throws