Corks are authorization tokens which are based off Google's Macaroons paper. They are bearer tokens which identify the entity possessing them, while providing a mechanism for embedding further restrictions via Cedar policy caveats.
Corks use Protobuf for serialization and deserialization of bearers and caveats. The proto definitions are located in the proto directory and the Buf toolchain is used to generate Dart code from the Protobuf files.
To generate the Dart code, install Buf then run the following command from the proto/
directory:
$ buf generate