{"id":51133801,"url":"https://github.com/nellcorp/hip-sdk-go","last_synced_at":"2026-06-25T15:30:47.238Z","repository":{"id":346930150,"uuid":"1184050865","full_name":"nellcorp/hip-sdk-go","owner":"nellcorp","description":"Go SDK for platforms integrating with the Human Identity Protocol.","archived":false,"fork":false,"pushed_at":"2026-05-03T14:58:44.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T15:29:25.234Z","etag":null,"topics":["human","identity","protocol"],"latest_commit_sha":null,"homepage":"https://humanidentity.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nellcorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-17T07:47:24.000Z","updated_at":"2026-05-03T14:58:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nellcorp/hip-sdk-go","commit_stats":null,"previous_names":["nellcorp/hip-sdk-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nellcorp/hip-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nellcorp%2Fhip-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nellcorp%2Fhip-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nellcorp%2Fhip-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nellcorp%2Fhip-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nellcorp","download_url":"https://codeload.github.com/nellcorp/hip-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nellcorp%2Fhip-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34781482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["human","identity","protocol"],"created_at":"2026-06-25T15:30:46.012Z","updated_at":"2026-06-25T15:30:47.232Z","avatar_url":"https://github.com/nellcorp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hip-sdk-go\n\nGo SDK for platforms integrating with the [Human Identity Protocol](https://github.com/nellcorp/hip).\n\n## Install\n\n```bash\ngo get github.com/nellcorp/hip-sdk-go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"time\"\n\n    hip \"github.com/nellcorp/hip-sdk-go\"\n)\n\nfunc main() {\n    // Key resolver fetches provider public keys from the registry\n    // with 24h caching and last-known-good fallback.\n    resolver := hip.NewRegistryKeyResolver(\n        \"https://registry.humanidentity.io\",\n        24*time.Hour,\n    )\n\n    // Create a client with your platform API key (hip_sk_…).\n    client := hip.New(\n        \"hip_sk_your_api_key\",\n        hip.WithKeyResolver(resolver),\n    )\n\n    // Verify a human identity. The provider URL is auto-discovered\n    // from the subject ID (abc123@provider.example.com → provider.example.com).\n    resp, err := client.Verify(context.Background(), hip.VerifyRequest{\n        SubjectID:    \"abc123@provider.example.com\",\n        Purpose:      \"account_creation\",\n        MinimumScore: 60,\n    })\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Printf(\"Status: %s, Score: %d\\n\", resp.Status, resp.Score)\n}\n```\n\n## Features\n\n- **Automatic JWS signature verification** using Ed25519 public keys from the registry\n- **Nonce generation** — cryptographically random nonce auto-generated per request\n- **Request ID generation** — UUID v4 auto-generated if not provided\n- **Registry key resolver** with TTL-based caching and last-known-good fallback\n- **Nonce verification** — ensures response nonce matches request\n- **Auto-discovery** — provider URL derived from subject ID (`{id}@{provider}`)\n- Zero external dependencies beyond `github.com/google/uuid`\n\n## Custom Key Resolver\n\nImplement `hip.KeyResolver` to use your own key management:\n\n```go\ntype KeyResolver interface {\n    ResolvePublicKey(ctx context.Context, providerID string) (ed25519.PublicKey, error)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnellcorp%2Fhip-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnellcorp%2Fhip-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnellcorp%2Fhip-sdk-go/lists"}