create

fun <P : Any> create(protectedHeader: CoseHeader, unprotectedHeader: CoseHeader? = null, payload: P?, signature: CryptoSignature.RawByteEncodable, payloadSerializer: KSerializer<P>): CoseSigned<P>(source)

Use this method to create a new CoseSigned object with correct CoseSigned.wireFormat set.