blob: 9d65571b82f2dc3e7eed3e13094f2d99d61a8bf8 [file] [log] [blame]
Ankurcc043852015-04-14 13:10:28 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package security
6
7import "v.io/v23/security"
8
9type blessingRootsState map[string][]security.BlessingPattern
10
11type blessingStoreState struct {
12 // PeerBlessings maps BlessingPatterns to the Blessings object that is to
13 // be shared with peers which present blessings of their own that match the
14 // pattern.
15 //
16 // All blessings bind to the same public key.
17 PeerBlessings map[security.BlessingPattern]security.WireBlessings
18 // DefaultBlessings is the default Blessings to be shared with peers for which
19 // no other information is available to select blessings.
20 DefaultBlessings security.WireBlessings
21}