{"id":21531946,"url":"https://github.com/matrixai/hs-libp2p-peer","last_synced_at":"2025-07-26T21:33:14.467Z","repository":{"id":151338456,"uuid":"93298350","full_name":"MatrixAI/hs-libp2p-peer","owner":"MatrixAI","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-16T09:13:20.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-24T06:29:48.416Z","etag":null,"topics":["haskell"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatrixAI.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":"2017-06-04T07:50:56.000Z","updated_at":"2018-09-25T11:02:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d347af4f-ba55-48f5-830a-fa5c052db70a","html_url":"https://github.com/MatrixAI/hs-libp2p-peer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixAI%2Fhs-libp2p-peer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixAI%2Fhs-libp2p-peer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixAI%2Fhs-libp2p-peer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixAI%2Fhs-libp2p-peer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatrixAI","download_url":"https://codeload.github.com/MatrixAI/hs-libp2p-peer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244095995,"owners_count":20397320,"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":["haskell"],"created_at":"2024-11-24T02:18:17.504Z","updated_at":"2025-03-17T19:27:57.743Z","avatar_url":"https://github.com/MatrixAI.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# TODO:\nVarious ID construction functions that take in strings, or bytes... etc, the main idea is that they can be cast into a multihash, and if they cannot, then they are not a valid ID.\n\nIDFromBytes\n\nIDFromString\n\nwe can collapse this into a single smart constructor that can handle these types of operations\n\nthe smart constructor checks whether the input type is a valid multihash\n\nthe decode\n\n-- a peer id is a base58 encoded, sha256 multihash of a public key\n-- a public key is a base64 encoded string of a protobuf containing a RSA DER buffer\n-- one way to represent a peer id, is the id itself and the ability to carry around the private key and the public key, that's how the javascript does it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixai%2Fhs-libp2p-peer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixai%2Fhs-libp2p-peer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixai%2Fhs-libp2p-peer/lists"}