MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / cliUserCodeHash

Function cliUserCodeHash

internal/store/cli_auth_sessions.go:427–427  ·  view source on GitHub ↗
(code string)

Source from the content-addressed store, hash-verified

425 return string(code[:]), nil
426}
427func cliUserCodeHash(code string) string { return fmt.Sprintf("%x", sha256.Sum256([]byte(code))) }
428
429func (s *Store) CreateCLIDeviceAuthSession(req CLIAuthRequester) (*CLIAuthSession, error) {
430 return s.createCLIDeviceAuthSession(req, generateCLIUserCode)

Calls

no outgoing calls

Tested by

no test coverage detected