func TstRunWithReplacedNewSecretKey(callback func()) {
	orig := newSecretKey
	defer func() {
		newSecretKey = orig
	}()
	newSecretKey = func(passphrase *[]byte, config *ScryptOptions) (*snacl.SecretKey, error) {
		return nil, snacl.ErrDecryptFailed
	}
	callback()
}
Replace the Manager.newSecretKey function with the given one and calls
the callback function. Afterwards the original newSecretKey
function will be restored.
package udb
import (
	"errors"
	"github.com/HcashOrg/hcashwallet/snacl"
)
var TstLatestMgrVersion = &latestMgrVersion