The serialization logic for KBFS. The package is named kbfscodec
rather than codec for two reasons:
- We already have a
keybase/go-codec/codecthat is commonly used. - A lot of variables are named
codecalready.
All errors returned by this package are wrapped with pkg/errors, and so need errors.Cause() to unwrap them.