From de8e82c06f54e907208955ee16c2d7cf44d237b8 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 31 Oct 2026 09:34:27 +0100 Subject: [PATCH] Say what the controller's lease turns now that the vault mints whoever holds it: grants' consumers, the grant source, retirement and rotation (issue 774) --- go/buscompose/accounts.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/go/buscompose/accounts.go b/go/buscompose/accounts.go index 5a08036..2f64e70 100644 --- a/go/buscompose/accounts.go +++ b/go/buscompose/accounts.go @@ -226,24 +226,24 @@ type LeaseHolder struct { func LeaseHandedAway(raw []byte, found bool, readErr error) (bool, string) { switch { case readErr != nil: - return false, "the controller's lease cannot be read (" + readErr.Error() + "), so nothing is minted" + return false, "the controller's lease cannot be read (" + readErr.Error() + "), so it is not handed away" case !found || len(raw) == 0 || string(raw) == "null": - return false, "no lease is written (expired, deleted, or never taken): a controller may take it, so nothing is minted" + return false, "no lease is written (expired, deleted, or never taken): a controller may take it, so it is not handed away" } var h LeaseHolder if err := json.Unmarshal(raw, &h); err != nil { - return false, "the controller's lease is not readable as a holder (" + err.Error() + "), so nothing is minted" + return false, "the controller's lease is not readable as a holder (" + err.Error() + "), so it is not handed away" } if strings.TrimSpace(h.HandedTo) == "" { who := h.Instance if who == "" { who = "an instance that names itself not" } - return false, "the controller holds the lease (" + who + "): it mints, so the vault mints nothing (ADR 0561 §3)" + return false, "the controller holds the lease (" + who + "), so it is not handed away (ADR 0561 §3)" } if h.Instance != "" { return false, "the lease names both a controller instance (" + h.Instance + ") and a holder it is handed to (" + - h.HandedTo + "), so nothing is minted" + h.HandedTo + "), so it is not handed away" } - return true, "the lease is handed to " + h.HandedTo + ": the vault mints every new account (ADR 0561 §1, §3)" + return true, "the lease is handed to " + h.HandedTo + " (ADR 0561 §3)" }