MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / initializeTokenizationService

Function initializeTokenizationService

ledgerforge.go:91–98  ·  view source on GitHub ↗

initializeTokenizationService creates and configures the tokenization service

(config *config.Configuration)

Source from the content-addressed store, hash-verified

89
90// initializeTokenizationService creates and configures the tokenization service
91func initializeTokenizationService(config *config.Configuration) *tokenization.TokenizationService {
92 if config.TokenizationSecret == "" {
93 return tokenization.NewTokenizationService(nil)
94 }
95
96 key := []byte(config.TokenizationSecret)
97 return tokenization.NewTokenizationService(key)
98}
99
100// initializeHTTPClient creates and configures the HTTP client for webhook requests
101func initializeHTTPClient() *http.Client {

Callers 1

NewLedgerForgeFunction · 0.85

Calls 1

NewTokenizationServiceFunction · 0.92

Tested by

no test coverage detected