{"id":15202800,"url":"https://github.com/koba-e964/bip32-typesafe","last_synced_at":"2026-03-06T18:31:42.817Z","repository":{"id":209780448,"uuid":"724031339","full_name":"koba-e964/bip32-typesafe","owner":"koba-e964","description":"A Go implementation of BIP 32 which is type-safe and a best-effort attempt at timing-attack resistance","archived":false,"fork":false,"pushed_at":"2025-02-12T17:25:34.000Z","size":77,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T18:33:37.076Z","etag":null,"topics":["bitcoin-wallet","cryptocurrency","cryptography-library","golang"],"latest_commit_sha":null,"homepage":"","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/koba-e964.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T08:58:25.000Z","updated_at":"2025-02-12T17:25:39.000Z","dependencies_parsed_at":"2024-07-29T02:59:14.209Z","dependency_job_id":null,"html_url":"https://github.com/koba-e964/bip32-typesafe","commit_stats":{"total_commits":62,"total_committers":1,"mean_commits":62.0,"dds":0.0,"last_synced_commit":"bcba654d00438d702e3b2d235a9670101f6835fc"},"previous_names":["koba-e964/bip32-typesafe"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbip32-typesafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbip32-typesafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbip32-typesafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koba-e964%2Fbip32-typesafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koba-e964","download_url":"https://codeload.github.com/koba-e964/bip32-typesafe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982489,"owners_count":20052530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitcoin-wallet","cryptocurrency","cryptography-library","golang"],"created_at":"2024-09-28T04:04:59.508Z","updated_at":"2026-03-06T18:31:42.809Z","avatar_url":"https://github.com/koba-e964.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bip32-typesafe ![Go](https://github.com/koba-e964/bip32-typesafe/actions/workflows/go.yml/badge.svg?query=branch%3Amain)\n**bip32-typesafe** is a type safe, cryptographically secure implementation of BIP 32 (hierarchical deterministic wallets).\n\nFunctions in this implementation let users avoid common mistakes/vulnerablities like:\n- mixing private keys and public keys: by type safety (for example, PrivateKey and PublicKey are different types)\n- side-channel attacks such as [timing attacks](https://en.wikipedia.org/wiki/Timing_attack): by making functions *constant-time* (taking the same amount of time regardless of the input)\n\nTherefore, this is an easy-to-use and hard-to-misuse library that users can use with confidence.\n\n## Examples\n```go\npackage main\n\nimport (\n\t\"crypto/rand\"\n\t\"fmt\"\n\t\"log\"\n\n\tbip32 \"github.com/koba-e964/bip32-typesafe\"\n)\n\nfunc main() {\n\t// Generate random 32 bytes\n\tseed := make([]byte, 32)\n\tif _, err := rand.Read(seed); err != nil {\n\t\tpanic(err)\n\t}\n\n\tmaster := bip32.NewMasterKey(seed)\n\tlog.Println(master.PrivateKey())\n\tchild0, err := master.NewChildKey(0) // master/0\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"master/0 =\", child0.B58Serialize())\n\tchildH0, err := master.NewChildKey(bip32.FirstHardenedChildIndex + 0) // master/0_H\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(\"master/0_H =\", childH0.B58Serialize())\n}\n```\n\n## Documentation\nPackage info: [https://pkg.go.dev/github.com/koba-e964/bip32-typesafe](https://pkg.go.dev/github.com/koba-e964/bip32-typesafe)\n\n## Development\nThis repo uses pre-commit to run `gofmt` and `staticcheck` before each commit.\n\n```sh\npre-commit install\npre-commit run --all-files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Fbip32-typesafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoba-e964%2Fbip32-typesafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoba-e964%2Fbip32-typesafe/lists"}