From 6481a2d5cdf452cf0ef2f9ed2f6aff1aabd319f3 Mon Sep 17 00:00:00 2001
From: callebtc <93376500+callebtc@users.noreply.github.com>
Date: Sun, 16 Oct 2022 13:41:46 +0200
Subject: [PATCH] coverage badge
---
README.md | 3 ++-
cashu/mint/ledger.py | 10 ----------
cashu/wallet/wallet.py | 10 ----------
3 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/README.md b/README.md
index add9593..b5aef91 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,8 @@
**Cashu is a Chaumian Ecash wallet and mint with Bitcoin Lightning support.**
-
+
+
*Disclaimer: The author is NOT a cryptographer and this work has not been reviewed. This means that there is very likely a fatal flaw somewhere. Cashu is still experimental and not production-ready.*
diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py
index 0621f92..1da1d82 100644
--- a/cashu/mint/ledger.py
+++ b/cashu/mint/ledger.py
@@ -207,16 +207,6 @@ class Ledger:
sum_outputs = sum(self._verify_amount(p.amount) for p in outs)
assert sum_outputs - sum_inputs == 0
- def _get_output_split(self, amount: int):
- """Given an amount returns a list of amounts returned e.g. 13 is [1, 4, 8]."""
- self._verify_amount(amount)
- bits_amt = bin(amount)[::-1][:-2]
- rv = []
- for (pos, bit) in enumerate(bits_amt):
- if bit == "1":
- rv.append(2**pos)
- return rv
-
async def _request_lightning_invoice(self, amount: int):
"""Returns an invoice from the Lightning backend."""
error, balance = await self.lightning.status()
diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py
index 6f17cfa..aacf92d 100644
--- a/cashu/wallet/wallet.py
+++ b/cashu/wallet/wallet.py
@@ -53,16 +53,6 @@ class LedgerAPI:
self.s = requests.Session()
self.s.headers.update({"Client-version": VERSION})
- @staticmethod
- def _get_output_split(amount):
- """Given an amount returns a list of amounts returned e.g. 13 is [1, 4, 8]."""
- bits_amt = bin(amount)[::-1][:-2]
- rv = []
- for (pos, bit) in enumerate(bits_amt):
- if bit == "1":
- rv.append(2**pos)
- return rv
-
def _construct_proofs(
self, promises: List[BlindedSignature], secrets: List[str], rs: List[str]
):