Skip to content

Commit

Permalink
Rust lib extracted from LNP/BP Core Lib repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Mar 19, 2021
0 parents commit aaeffdd
Show file tree
Hide file tree
Showing 11 changed files with 3,266 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Cargo
# will have compiled files and executables
/target

# These are backup files generated by rustfmt
**/*.rs.bk

.idea

*.swp

/dep_test
5 changes: 5 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Code of Conduct

Out code of conduct is not to have a code of conduct. Restriction is the word
of sin: free people writing free code take their own decisions and act in a
way they like; taking all responsibility for the consequences.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-2021 LNP/BP Standards Association

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# LNP/BP Invoice Library

Library providing functionality for doing universal invoices covering Bitcoin,
Lightning Network and RGB (on-chain and LN) according to LNPBP-38 standard.
Supports address-, UTXO-, channel-, miniscript-descriptor- and PSBT-based
invoices with such features as:
- Paying arbitrary amounts (donations etc)
- Recurrent payments
- Per-item prices with multiple item orders
- Expiration dates
- Currency exchange rate requirements
- Extended information about merchants, invoice details etc
- Optional merchant signatures

Read more on this invoices in
[slides](https://github.com/LNP-BP/FAQ/blob/master/Presentation%20slides/Universal%20LNP-BP%20invoices.pdf)
or watch [YouTube recording](https://www.youtube.com/watch?v=R1QudCywRGk) of one
of LNP/BP Association development calls discussing universal invoices.
17 changes: 17 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
codecov:
require_ci_to_pass: no

coverage:
precision: 1
round: nearest
range: "0...95"
# TODO: Update codecov default requirements after v1.0 release
status:
project:
default:
target: 0%
threshold: 1%
patch:
default:
target: 0%
threshold: 1%
3 changes: 3 additions & 0 deletions rust/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
max_width = 80
wrap_comments = true
format_code_in_doc_comments = true
Loading

0 comments on commit aaeffdd

Please sign in to comment.