Assert that the input is a Uint8Array.
The value to check.
If nonce is not a Uint8Array.
import { assertNonce } from 'iso-ucan/utils'assertNonce(new Uint8Array([1,2,3])) // okassertNonce('foo') // throws Copy
import { assertNonce } from 'iso-ucan/utils'assertNonce(new Uint8Array([1,2,3])) // okassertNonce('foo') // throws
Assert that the input is a Uint8Array.