COSESign1.deserialize constructor
COSESign1.deserialize(
- CborIterableObject<
Iterable> cbor
Implementation
factory COSESign1.deserialize(CborIterableObject cbor) {
return COSESign1(
headers: COSEHeaders(
protected: COSEProtectedHeaderMap.deserialize(
cbor.elementAt<CborBytesValue>(0)),
unprotected:
COSEHeaderMap.deserialize(cbor.elementAt<CborMapValue>(1))),
payload: cbor.elementAtBytes<List<int>?>(2),
signature: cbor.elementAtBytes<List<int>>(3),
serializationConfig: COSESerializationConfig(encoding: cbor.encoding));
}