Mints a version 2 macaroon: an identifier and first-party caveats chained under HMAC-SHA256 from a root key.
the root key, at least MACAROON_MIN_ROOT_KEY_BYTES
MACAROON_MIN_ROOT_KEY_BYTES
the macaroon's identifier
its location hint
the first-party caveats, in order
{ location, identifier, caveats, signature }
Error for an unusable root key, or what the library throws
Mints a version 2 macaroon: an identifier and first-party caveats chained under HMAC-SHA256 from a root key.