github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/kbfsmd/key_gen.go (about) 1 // Copyright 2017 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 package kbfsmd 6 7 // KeyGen is the type of a key generation for a top-level folder. 8 type KeyGen int 9 10 const ( 11 // PublicKeyGen is the value used for public TLFs. Note that 12 // it is not considered a valid key generation. 13 PublicKeyGen KeyGen = -1 14 // UnspecifiedKeyGen indicates that the application doesn't have a 15 // particular keygen in mind when requesting keys; any keygen will 16 // do. 17 UnspecifiedKeyGen KeyGen = 0 18 // FirstValidKeyGen is the first value that is considered a 19 // valid key generation. Note that the nil value is not 20 // considered valid. 21 FirstValidKeyGen KeyGen = 1 22 )