assertIsSignatureBytes
Asserts that an arbitrary ReadonlyUint8Array
is an Ed25519 signature.
Useful when you receive a ReadonlyUint8Array
from an external interface (like the browser wallets' signMessage
API) that you expect to
represent an Ed25519 signature.
Parameters
Parameter | Type |
---|---|
putativeSignatureBytes | ReadonlyUint8Array |
Returns
asserts putativeSignatureBytes is SignatureBytes