Indispensable COSE Data Structures
This Kotlin Multiplatform library provides platform-independent COSE data
types and utility functions. It comes with predefined JOSE algorithm identifiers and guaranteed correct
serialization, leveraging kotlinx.serialization.
There's really not much more to it; it's data structures with self-describing names that interop with
Indispensable data classes such as SignatureAlgorithm
, CryptoSignature
, and CryptoPublicKey
.
Classes like CborWebToken
come with serialize()
and deserialize()
functions, that take care of everything.
The preconfigured serializer ensuring compliant serialization of all COSE-related data structures is called coseCompliantSerializer
.
Tip
Do check out the full API docs here to get an overview about all COSE-specific data types included!
Using it in your Projects
This library was built for Kotlin Multiplatform. Currently, it supports all KMP targets except watchosDeviceArm64
.
Simply declare the desired dependency to get going: