{"id":13779937,"url":"https://github.com/codemaveric/libra-go","last_synced_at":"2026-01-12T01:58:54.888Z","repository":{"id":57484302,"uuid":"193943214","full_name":"codemaveric/libra-go","owner":"codemaveric","description":"Go Client for interacting with Libra Blockchain","archived":false,"fork":false,"pushed_at":"2019-11-26T12:20:47.000Z","size":142,"stargazers_count":49,"open_issues_count":2,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-13T20:00:24.554Z","etag":null,"topics":["blockchain","blockchain-technology","cryptocurrency","go","golang","golang-package","libra","libra-go"],"latest_commit_sha":null,"homepage":null,"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/codemaveric.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}},"created_at":"2019-06-26T16:43:07.000Z","updated_at":"2022-11-27T10:03:17.000Z","dependencies_parsed_at":"2022-08-26T14:22:49.566Z","dependency_job_id":null,"html_url":"https://github.com/codemaveric/libra-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codemaveric/libra-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemaveric%2Flibra-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemaveric%2Flibra-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemaveric%2Flibra-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemaveric%2Flibra-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemaveric","download_url":"https://codeload.github.com/codemaveric/libra-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemaveric%2Flibra-go/sbom","scorecard":{"id":296750,"data":{"date":"2025-08-11","repo":{"name":"github.com/codemaveric/libra-go","commit":"194be8216ea6e2da2a82ed8bc03349085beda5ec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 4/29 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0053 / GHSA-c3h9-896r-86jm","Warn: Project is vulnerable to: GO-2022-0209 / GHSA-r5c5-pr8j-pfp7","Warn: Project is vulnerable to: GO-2023-1992 / GHSA-x3jr-pf6g-c48f","Warn: Project is vulnerable to: GO-2022-0229 / GHSA-cjjc-xp8v-855w","Warn: Project is vulnerable to: GO-2020-0012 / GHSA-ffhg-7mh4-33c4","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T19:44:17.232Z","repository_id":57484302,"created_at":"2025-08-17T19:44:17.233Z","updated_at":"2025-08-17T19:44:17.233Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["blockchain","blockchain-technology","cryptocurrency","go","golang","golang-package","libra","libra-go"],"created_at":"2024-08-03T18:01:10.744Z","updated_at":"2026-01-12T01:58:54.868Z","avatar_url":"https://github.com/codemaveric.png","language":"Go","funding_links":[],"categories":["Testnet","Go"],"sub_categories":["Libraries"],"readme":"# Libra Golang Client\nLibra Golang Client is library to interact with Libra Blockchain\n\n\u003e Note: The project is still under major development! The Package is not stable and will keep changing!\n\n## Installation\nTo install run:\n\n`go get github.com/codemaveric/libra-go/pkg/goclient`\n\n\n\n## Usage\nExample\n\n```Go\npackage main\n\nimport (\n\t\"log\"\n\t\"strings\"\n\n\t\"github.com/codemaveric/libra-go/pkg/goclient\"\n\t\"github.com/codemaveric/libra-go/pkg/librawallet\"\n)\n\nfunc main() {\n \t// I will advice you to change the mnemonic to something else\n\tmnemonic := \"present good satochi coin future media giant\"\n\twallet := librawallet.NewWalletLibrary(mnemonic)\n\taddress, childNum, err := wallet.NewAddress()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Print(address.ToString())\n\n\t// Generate Keypair with mnemonic and childNum\n\tkeyPair := librawallet.GenerateKeyPair(strings.Split(mnemonic, \" \"), childNum)\n\n\t// Create Account from KeyPair\n\tsourceAccount := librawallet.NewAccountFromKeyPair(keyPair)\n\t// Libra Client Configuration\n\tconfig := goclient.LibraClientConfig{\n\t\tHost:    \"ac.testnet.libra.org\",\n\t\tPort:    \"80\",\n\t\tNetwork: goclient.TestNet,\n\t}\n\t// Instantiate LibraClient with Configuration.\n\tlibraClient := goclient.NewLibraClient(config)\n\n\t// Mint Coin from Test Faucet to account generated.\n\terr = libraClient.MintWithFaucetService(sourceAccount.Address.ToString(), 500000000, true)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Get Account State.\n\tSourceaccState, err := libraClient.GetAccountState(sourceAccount.Address.ToString())\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tlog.Print(SourceaccState.Balance)\n\n\t// Set the current account sequence.\n\tsourceAccount.Sequence = SourceaccState.SequenceNumber\n\n\t// Transfer Coins from source account to destination address.\n\terr = libraClient.TransferCoins(sourceAccount, \"f4aebe371e4176143c3409122d0adf43c0e00a6552b5b0ae9980d8981fcd0221\", 11000000, 0, 10000, true)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t\n\t// Get Account Transaction by Sequence Number.\n\ttransaction, err := libraClient.GetAccountTransaction(sourceAccount.Address.ToString(), 0, true)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog.Println(transaction)\n}\n\n```\n\n## Contribution\nFeel free to contribute by opening issues or PR's.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemaveric%2Flibra-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemaveric%2Flibra-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemaveric%2Flibra-go/lists"}