tka: implement Authority API surface

After this, there should be one final PR to implement the Sync algorithm!

Signed-off-by: Tom DNetto <tom@tailscale.com>
This commit is contained in:
Tom DNetto
2022-07-18 11:37:25 -07:00
committed by Tom
parent 2491fe1afe
commit 165c8f898e
3 changed files with 393 additions and 1 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ func (a *AUM) StaticValidate() error {
}
if a.State != nil {
if len(a.State.LastAUMHash) != 0 {
if a.State.LastAUMHash != nil {
return errors.New("checkpoint state cannot specify a parent AUM")
}
if len(a.State.DisablementSecrets) == 0 {