{"id":20305804,"url":"https://github.com/bitpay/bitpay-perl-keyutils","last_synced_at":"2025-10-22T02:54:21.019Z","repository":{"id":31720525,"uuid":"35286377","full_name":"bitpay/bitpay-perl-keyutils","owner":"bitpay","description":"Provides required cryptographic functions to use the BitPay 2.0 API","archived":false,"fork":false,"pushed_at":"2015-08-06T19:51:10.000Z","size":329,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T08:03:03.111Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpay.png","metadata":{"files":{"readme":"README","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T15:19:03.000Z","updated_at":"2024-08-29T17:05:00.000Z","dependencies_parsed_at":"2022-09-17T18:10:15.922Z","dependency_job_id":null,"html_url":"https://github.com/bitpay/bitpay-perl-keyutils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-perl-keyutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-perl-keyutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-perl-keyutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpay%2Fbitpay-perl-keyutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpay","download_url":"https://codeload.github.com/bitpay/bitpay-perl-keyutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248425094,"owners_count":21101297,"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-11-14T17:09:56.393Z","updated_at":"2025-10-22T02:54:20.953Z","avatar_url":"https://github.com/bitpay.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"BitPay Key Utils version 2.0.0\n==============================\n\nThis library provides utilities for use with the BitPay API. It enables creating keys, retrieving public keys, creating the SIN that is used in retrieving tokens from BitPay, and signing payloads for the `X-Signature` header in a BitPay API request.\n\nDEPENDENCIES\n\n\tlibssl-dev (OpenSSL 0.9.8+)\n\tSWIG (3.0.5+)\n\tPerl (5.18+)\n\tMake\n\nINSTALLATION\n\nInstall from cpan by typing the following:\n\nsudo cpanm BitPay::KeyUtils\n\nor\n\nClone the github repository and type the following:\n\n\tperl Makefile.PL\n\tmake\n\tmake test\n\tmake install\n\nUSAGE\n\nUse the key utils by including `use BitPay::KeyUtils` in your project. This should give you access to the functions:\n\n\tmy $pem = BitPay::KeyUtils::bpGeneratePem(); #creates ECDSA Keys and sets the value of pem to the PEM encoding of the key\n\tmy $pub = BitPay::KeyUtils::bpGetPublicKeyFromPem($pem); #takes a pem string and sets the value of pubkey to the compressed public key extracted from the pem\n\tmy $sin = BitPay::KeyUtils::bpGenerateSinFromPem($pem); #gets the base58 unique identifier associated with the pem\n\tmy $signature = BitPay::KeyUtils::bpSignMessageWithPem($pem, \"He's dead, Jim.\"); #sets signature to the signature of the sha256 of the message\n\nDEV ENVIRONMENT\n\nClone the github repository.\n\nTo build and install this module type the following:\n\n\t./clean\n\t./build\n\nAPI DOCUMENTATION\n\nAPI Documentation is available on the [BitPay site](https://bitpay.com/api).\n\nRUNNING THE TESTS\n\nTo run the tests type the following:\n\n\tperl test.pl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-perl-keyutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpay%2Fbitpay-perl-keyutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpay%2Fbitpay-perl-keyutils/lists"}