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

Method TokenizeIdentity

identity.go:268–276  ·  view source on GitHub ↗

TokenizeIdentity tokenizes all specified fields in an identity. Parameters: - identityID string: The ID of the identity. - fields []string: The names of the fields to tokenize. Returns: - error: An error if any field could not be tokenized.

(identityID string, fields []string)

Source from the content-addressed store, hash-verified

266// Returns:
267// - error: An error if any field could not be tokenized.
268func (l *LedgerForge) TokenizeIdentity(identityID string, fields []string) error {
269 for _, field := range fields {
270 err := l.TokenizeIdentityField(identityID, field)
271 if err != nil {
272 return err
273 }
274 }
275 return nil
276}
277
278// DetokenizeIdentity detokenizes and returns all tokenized fields in an identity.
279//

Callers 1

Calls 1

TokenizeIdentityFieldMethod · 0.95

Tested by 1