(ns, startTs uint64)
| 2031 | } |
| 2032 | |
| 2033 | func getHash(ns, startTs uint64) string { |
| 2034 | h := sha256.New() |
| 2035 | h.Write([]byte(fmt.Sprintf("%#x%#x%#x", ns, startTs, []byte(worker.Config.AclSecretKeyBytes)))) |
| 2036 | return hex.EncodeToString(h.Sum(nil)) |
| 2037 | } |
| 2038 | |
| 2039 | func validateNamespace(ctx context.Context, tc *api.TxnContext) error { |
| 2040 | if !x.WorkerConfig.AclEnabled { |