Update Enchantrix, Mining dependency paths and snider/i18n import to forge.lthn.ai equivalents across go.mod files and imports. Also update go-i18n pseudo-version to v0.0.1 tag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
493 B
Go
19 lines
493 B
Go
// Package lthn provides Lethean-specific cryptographic functions.
|
|
// It wraps the Enchantrix library's LTHN hash implementation.
|
|
package lthn
|
|
|
|
import (
|
|
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
|
)
|
|
|
|
var service *crypt.Service
|
|
|
|
func init() {
|
|
service = crypt.NewService()
|
|
}
|
|
|
|
// Hash computes a Lethean-compatible hash of the input string.
|
|
// This is used for workspace identifiers and other obfuscation purposes.
|
|
func Hash(payload string) string {
|
|
return service.Hash(crypt.LTHN, payload)
|
|
}
|