{"id":13619764,"url":"https://github.com/coins/sha256","last_synced_at":"2025-04-14T16:32:48.581Z","repository":{"id":217078476,"uuid":"725758130","full_name":"coins/sha256","owner":"coins","description":"JavaScript implementation of SHA256 extracted from Bitcoin Core and compiled to WebAssembly","archived":false,"fork":false,"pushed_at":"2024-02-03T22:22:03.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-01T11:02:30.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coins.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-30T20:14:26.000Z","updated_at":"2024-10-04T13:23:56.000Z","dependencies_parsed_at":"2024-06-16T11:15:09.340Z","dependency_job_id":null,"html_url":"https://github.com/coins/sha256","commit_stats":null,"previous_names":["bitvm/sha256","coins/sha256"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coins%2Fsha256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coins%2Fsha256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coins%2Fsha256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coins%2Fsha256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coins","download_url":"https://codeload.github.com/coins/sha256/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223472809,"owners_count":17150745,"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":[],"created_at":"2024-08-01T21:00:48.332Z","updated_at":"2024-11-08T05:32:03.900Z","avatar_url":"https://github.com/coins.png","language":"C++","readme":"# SHA256 WASM\n\nSHA256 implementation extracted from [Bitcoin Core](https://github.com/bitcoin/bitcoin/blob/master/src/crypto/sha256.cpp) and compiled to WebAssembly.\n\n## Usage\n```js\nimport {sha256} from 'https://bitvm.github.io/sha256/sha256.js'\n\nconst preimage = new Uint8Array([97, 98, 99])    // Our preimage is \"abc\"\nconst digest = sha256(preimage)\n\nconsole.log(digest)\n```\n\n\n## Development\nThe following command compiles the sources to wasm:\n```sh\nclang src/sha256.cpp -O2 --no-standard-libraries --target=wasm32 -Wl,--no-entry -o sha256.wasm\n```\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Potential Use Case"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoins%2Fsha256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoins%2Fsha256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoins%2Fsha256/lists"}