Macfly.Caveat.ThirdParty.Ticket (macfly v0.2.21)

Copy Markdown View Source

Summary

Types

t()

@type t() :: %Macfly.Caveat.ThirdParty.Ticket{
  caveats: [Macfly.Caveat.t()],
  discharge_key: binary()
}

Functions

discharge_macaroon(ciphertext, tp_key, location)

@spec discharge_macaroon(Macfly.Crypto.ciphertext(), Macfly.Crypto.key(), String.t()) ::
  {:ok, Macfly.Macaroon.t()} | {:error, any()}

recover(ciphertext, key, options \\ Macfly.default_options())

@spec recover(Macfly.Crypto.ciphertext(), Macfly.Crypto.key(), Macfly.Options.t()) ::
  {:ok, t()} | {:error, any()}

seal(ticket, tp_key)

@spec seal(t(), Macfly.Crypto.key()) :: binary()