Optionalsignature?: Uint8Array<ArrayBufferLike>The Sig_structure, the bytes to sign.
Optionalpayload: Uint8Array<ArrayBufferLike>
the payload to sign in place of the message's own, needed when it is detached
The payload, null if it is detached, or its hash if it was hashed.
Replaces the payload with its Blake2b-224 hash and sets hashed in the unprotected header.
Whether the payload is the message's Blake2b-224 hash, as the hashed unprotected header
says.
Whether the signature verifies. Throws if the protected header's alg isn't EdDSA (-8).
OptionalexternalAad?: Uint8Array<ArrayBufferLike>Optionalpayload?: Uint8Array<ArrayBufferLike>the payload to verify in place of the message's own, needed when it is detached. For a hashed message, pass the hash
OptionalpublicKeyBuffer?: Uint8Array<ArrayBufferLike>the 32-byte Ed25519 public key, if the protected header doesn't carry it (label 4)
StaticfromParses a COSE_Sign1 message, given as hex or bytes. Throws if a header has the same label twice.
null for a detached payload