github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/saltpackkeys/saltpack_keyfinder_production.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  //go:build production
     5  // +build production
     6  
     7  package saltpackkeys
     8  
     9  import "github.com/keybase/client/go/libkb"
    10  
    11  func NewRecipientKeyfinderEngineHook(getKBFSKeyfinderForTesting bool) func(arg libkb.SaltpackRecipientKeyfinderArg) libkb.SaltpackRecipientKeyfinderEngineInterface {
    12  	if getKBFSKeyfinderForTesting {
    13  		panic("NewRecipientKeyfinderEngineHook: getKBFSKeyfinderForTesting is true in production")
    14  	}
    15  	return NewSaltpackRecipientKeyfinderEngineAsInterface
    16  }