{"id":17183385,"url":"https://github.com/geod24/libsodium-crypto","last_synced_at":"2026-02-17T00:33:59.688Z","repository":{"id":192040062,"uuid":"684531909","full_name":"Geod24/libsodium-crypto","owner":"Geod24","description":"Libsodium-based cryptographic primitives, including Cruve25519, Blake2b, and Schnorr signatures","archived":false,"fork":false,"pushed_at":"2024-06-24T21:50:58.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"v0.x.x","last_synced_at":"2025-10-10T15:14:21.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","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/Geod24.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-08-29T10:25:57.000Z","updated_at":"2024-06-24T21:51:01.000Z","dependencies_parsed_at":"2024-06-24T22:57:13.977Z","dependency_job_id":"d8c36533-3a6c-4ad5-8e21-feeedb21aa2d","html_url":"https://github.com/Geod24/libsodium-crypto","commit_stats":null,"previous_names":["geod24/libsodium-crypto"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Geod24/libsodium-crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geod24%2Flibsodium-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geod24%2Flibsodium-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geod24%2Flibsodium-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geod24%2Flibsodium-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geod24","download_url":"https://codeload.github.com/Geod24/libsodium-crypto/tar.gz/refs/heads/v0.x.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geod24%2Flibsodium-crypto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29526882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T21:45:09.491Z","status":"ssl_error","status_checked_at":"2026-02-16T21:44:58.452Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-15T00:40:25.160Z","updated_at":"2026-02-17T00:33:59.628Z","avatar_url":"https://github.com/Geod24.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crypto\n\nA library to perform cryptographic operations for the BOA blockchain.\nThe library relies on `libsodium` for cryptographic primitives,\nand the `bitblob` package for convenience.\n\n##  [`agora.crypto.Hash`](https://github.com/bosagora/crypto/blob/v0.x.x/source/agora/crypto/Hash.d)\n\nThis module exposes a thin wrapper on top of `libsodiumd`'s `Blake2b` bindings,\ncombining it with `bitblob` to provide a more user-friendly experience.\nThe `Hash` type is a fully `@nogc` value type, and passing it to a string printing\nfunction that supports `toString` sink is guaranteed not to allocate.\n\n## [`agora.crypto.ECC`](https://github.com/bosagora/crypto/blob/v0.x.x/source/agora/crypto/ECC.d)\n\nThis module exposes thin wrappers on top of `libsodium`'s cryptographic primitives,\nallowing to use more convenient syntax (e.g. operator overload) when manipulating scalar\n(numbers on finite field, usually used as private keys) and points (usually used as public key).\n\n## [`agora.crypto.Schnorr`](https://github.com/bosagora/crypto/blob/v0.x.x/source/agora/crypto/Schnorr.d)\n\nThis module glues together `ECC` and `Hash` to generate signatures.\nIn order to generate a signature, both the `Scalar` and the `Point` are used,\nso in order to avoid re-generating the `Point` every time, a convenience `Pair` struct is exposed.\n\nThe signature generated is stored in a `Sig` structure, however, to separate the chain's data structures\nfrom the crypto code, `Sig` can convert to a `Signature` (see `agora.crypto.Types`) via the `toBlob` method.\n\nThe main interface for this module are the various `sign` functions, which can be used in\na pedestrian way (e.g. `Pair kp = Pair.random(); sign(kp, \"Message\");`), or in a more complex fashion\n(using a specific `r`, or even different scalar and points altogether, to allow for multisig schemes).\n\n## [`agora.crypto.Types`](https://github.com/bosagora/crypto/blob/v0.x.x/source/agora/crypto/Types.d)\n\nThis module exposes types which can be used by client code, without importing the types from other\nmodules directly (in other words, it's a leaf module).\nThe aim is to reduce dependencies by allowing a data structure to include a type without gaining\nknowledge of the hashing or signing routines.\n\n## Required features\n\nThis library require usage of `-preview=in`, hence the following minimum versions:\n- `dub \u003e= 1.24`\n- `dmd \u003e= 2.095.0`\n- `ldc \u003e= 1.25.0`\n\nYour `dub.json` must include `dflags: [ \"-preview=in\" ]`.\nIf it does not, linker error might be triggered in cases where `ref` is inferred.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeod24%2Flibsodium-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeod24%2Flibsodium-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeod24%2Flibsodium-crypto/lists"}