github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/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  }