{"id":13560876,"url":"https://github.com/LNP-BP/rust-lnpbp","last_synced_at":"2025-04-03T16:31:19.343Z","repository":{"id":35306380,"uuid":"210809545","full_name":"LNP-BP/rust-lnpbp","owner":"LNP-BP","description":"Library implementing LNPBP standards related to client-side-validation paradigm","archived":false,"fork":false,"pushed_at":"2023-12-21T18:27:52.000Z","size":2831,"stargazers_count":78,"open_issues_count":8,"forks_count":31,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T01:37:51.252Z","etag":null,"topics":["bitcoin","bitcoin-blockchain","bitcoin-protocols","client-side-validation","lightning-network","lnp-bp","rust-library","single-use-seals","smart-contracts"],"latest_commit_sha":null,"homepage":"https://lnp-bp.org","language":"Rust","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/LNP-BP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["dr-orlovsky"]}},"created_at":"2019-09-25T09:43:03.000Z","updated_at":"2024-11-05T00:34:18.000Z","dependencies_parsed_at":"2024-01-14T03:47:17.986Z","dependency_job_id":"bc92e090-96c0-4a3a-9f59-bb76124287dc","html_url":"https://github.com/LNP-BP/rust-lnpbp","commit_stats":{"total_commits":1083,"total_committers":17,"mean_commits":"63.705882352941174","dds":"0.13111726685133884","last_synced_commit":"9bfdec8d63a092e73606bf8259adf0f1c5c26578"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LNP-BP%2Frust-lnpbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LNP-BP%2Frust-lnpbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LNP-BP%2Frust-lnpbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LNP-BP%2Frust-lnpbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LNP-BP","download_url":"https://codeload.github.com/LNP-BP/rust-lnpbp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247036994,"owners_count":20873071,"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":["bitcoin","bitcoin-blockchain","bitcoin-protocols","client-side-validation","lightning-network","lnp-bp","rust-library","single-use-seals","smart-contracts"],"created_at":"2024-08-01T13:00:50.396Z","updated_at":"2025-04-03T16:31:18.888Z","avatar_url":"https://github.com/LNP-BP.png","language":"Rust","funding_links":["https://github.com/sponsors/dr-orlovsky"],"categories":["Libraries and CLIs"],"sub_categories":["Main RGB Standards"],"readme":"# LNP/BP Library\n\n![Build](https://github.com/LNP-BP/rust-lnpbp/workflows/Build/badge.svg)\n![Tests](https://github.com/LNP-BP/rust-lnpbp/workflows/Tests/badge.svg)\n![Lints](https://github.com/LNP-BP/rust-lnpbp/workflows/Lints/badge.svg)\n[![codecov](https://codecov.io/gh/LNP-BP/rust-lnpbp/branch/master/graph/badge.svg)](https://codecov.io/gh/LNP-BP/rust-lnpbp)\n\n[![crates.io](https://img.shields.io/crates/v/lnpbp)](https://crates.io/crates/lnpbp)\n[![Docs](https://docs.rs/lnpbp/badge.svg)](https://docs.rs/lnpbp)\n[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\nThe repository represents a set of libraries implementing LNP/BP specifications \n\u003chttps://github.com/LNP-BP/LNPBPs\u003e not fitting into a scope of other existing \nLNP/BP core libraries (client-side-validation, BP, LNP, RGB, invoicing). It can \nbe used to simplify development of layer 2 \u0026 3 solutions on top of Lightning \nNetwork and Bitcoin blockchain.\n\nCurrently, the repository contains the following crates:\n- `lnpbp_bech32`: library implementing LNPBP-14 standard of Bech32 encoding for\n  client-side-validated data.\n- `lnpbp_chain`: library providing chain parameters for bitcoin-related \n  blockchains;\n- `lnpbp_elgamal`: library implementing LNPBP-31 standard for ElGamal encryption \n  using Secp256k1 curve;\n- LNPBP umbrella crate containing all aforementioned libraries.\n\nOther libraries, implementing LNP/BP specifications, not included in this crate:\n- Client-side-validation foundation libraries\n  ([`client_side_validation`](https://github.com/LNP-BP/client_side_validation))\n- Bitcoin protocol core library \n  ([`bp-core`](https://github.com/LNP-BP/bp-core))\n- Lightning network protocol core library\n  ([`lnp-core`](https://github.com/LNP-BP/lnp-core))\n- RGB core library implementing confidential \u0026 scalable smart contracts for \n  Bitcoin \u0026 Lightning ([`rgb-core`](https://github.com/rgb-org/rgb-core))\n- [Universal invoicing library](https://github.com/LNP-BP/invoices)\n\nThe current list of the projects based on these libraries include:\n* [RGB Node](https://github.com/rgb-org/rgb-node)\n* [LNP Node](https://github.com/LNP-BP/lnp-node) enabling:\n  - RGB extensions\n  - DLC extensions\n  - [Lightspeed payments](https://github.com/LNP-BP/LNPBPs/issues/24)\n  - Multi-peer channels\n  - Faster lightning experiments (quicker adoption of eltoo, Taproot etc)\n* [BP Node](https://github.com/LNP-BP/bp-node): Indexing service for bitcoin \n  blockchain; more efficient \u0026 universal Electrum server replacement. In \n  perspective - validating Bitcoin network node (using libbitcoinconsus)\n\nPotentially, with LNP/BP libraries you can simplify the development of\n* Discreet log contracts\n* Implement experimental lightning features\n* Do complex multi-threaded or elastic/dockerized client-service microservice \n  architectures\n\nThe development of the libraries is supported by LNP/BP Standards Association.\n\n## Install\n\n### Clone and compile library\n\nMinimum supported rust compiler version (MSRV): 1.59.0.\n\n```shell script\ngit clone https://github.com/lnp-bp/rust-lnpbp\ncd rust-lnpbp\ncargo build --release --all-features\n```\n\nThe library can be found in `target/release` directory.\n\nYou can run full test suite with:\n\n```shell\ncargo test --workspace --all-features\n```\n\nPlease refer to the [`cargo` documentation](https://doc.rust-lang.org/stable/cargo/) \nfor more detailed instructions. \n\n### Use library in other projects\n\nAdd these lines to your `Cargo.toml` file at the very end of the `[dependecies]`\nsection:\n\n```toml\nlnpbp = \"~0.5.0\"\nlnpbp_bech32 = \"~0.5.0\"\nlnpbp_chain = \"~0.5.0\"\nlnpbp_elgamal = \"~0.5.0\"\n```\n\n\n## Contributing\n\nContribution guidelines can be found in a separate \n[CONTRIBUTING](CONTRIBUTING.md) file\n\n\n## More information\n\n### Policy on Altcoins/Altchains\n\nAltcoins and \"blockchains\" other than Bitcoin blockchain/Bitcoin protocols are \nnot supported and not planned to be supported; pull requests targeting them will \nbe declined.\n\n### Licensing\n\nSee [LICENCE](./LICENSE) file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLNP-BP%2Frust-lnpbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLNP-BP%2Frust-lnpbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLNP-BP%2Frust-lnpbp/lists"}