macaroons: add technical documentation, fix comments

This commit is contained in:
Oliver Gugger authored and Oliver Gugger committed 2018-05-18 10:13:25 +02:00
1 parent 8e4e2bd889
commit 3eff9804ee
4 files changed
+86 -4

No files matched your search

+3 -2
View File
@@ -791,8 +791,9 @@ func genCertPair(certFile, keyFile string) error {
return nil
}
// genMacaroons generates a pair of macaroon files; one admin-level and one
// read-only. These can also be used to generate more granular macaroons.
// genMacaroons generates three macaroon files; one admin-level, one
// for invoice access and one read-only. These can also be used
// to generate more granular macaroons.
func genMacaroons(ctx context.Context, svc *macaroons.Service,
admFile, roFile, invoiceFile string) error {