Skip to content

Commit f97801e

Browse files
authored
remove nostr (#833)
1 parent 516cee2 commit f97801e

31 files changed

+34
-1516
lines changed

.codecov.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ coverage:
44
patch: off
55
ignore:
66
- "cashu/lightning/lnd_grpc/protos"
7-
- "cashu/nostr"

.env.example

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ TOR=TRUE
1515
#SOCKS_PROXY=socks5://localhost:9050
1616
#HTTP_PROXY=http://localhost:8088
1717

18-
# NOSTR
19-
# nostr private key to which to receive tokens to
20-
# NOSTR_PRIVATE_KEY=nostr_privatekey_here_hex_or_bech32_nsec
21-
# nostr relays (comma separated list)
22-
NOSTR_RELAYS=["wss://nostr-pub.wellorder.net"]
23-
2418
# Wallet API port
2519
API_PORT=4448
2620

.github/codecov.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ coverage:
77
# adjust accordingly based on how flaky your tests are
88
# this allows a 10% drop from the previous base commit coverage
99
threshold: 10%
10-
# ignore any files in cashu/nostr
11-
ignore:
12-
- "cashu/nostr"

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
exclude: "^cashu/nostr/.*"
21
repos:
32
- repo: https://github.com/pre-commit/pre-commit-hooks
43
rev: v4.5.0

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Cashu is a free and open-source [Ecash protocol](https://github.com/cashubtc/nut
3333
- Programmable ecash: P2PK and HTLCs ([NUT-10](https://github.com/cashubtc/nuts/blob/main/10.md))
3434
- Wallet and mint support for keyset rotations
3535
- DLEQ proofs for offline transactions ([NUT-12](https://github.com/cashubtc/nuts/blob/main/12.md))
36-
- Send and receive tokens via nostr
3736
- Optional caching using Redis ([NUT-19](https://github.com/cashubtc/nuts/blob/main/19.md))
3837
- Optional authentication using Keycloak ([NUT-21](https://github.com/cashubtc/nuts/blob/main/21.md))
3938

cashu/core/settings.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -247,23 +247,6 @@ class WalletSettings(CashuSettings):
247247
api_port: int = Field(default=4448)
248248
api_host: str = Field(default="127.0.0.1")
249249

250-
nostr_private_key: str = Field(default=None)
251-
nostr_relays: List[str] = Field(
252-
default=[
253-
"wss://nostr-pub.wellorder.net",
254-
"wss://relay.damus.io",
255-
"wss://nostr.mom",
256-
"wss://relay.snort.social",
257-
"wss://nostr.mutinywallet.com",
258-
"wss://relay.minibits.cash",
259-
"wss://nos.lol",
260-
"wss://relay.nostr.band",
261-
"wss://relay.bitcoiner.social",
262-
"wss://140.f7z.io",
263-
"wss://relay.primal.net",
264-
]
265-
)
266-
267250
locktime_delta_seconds: int = Field(default=86400) # 1 day
268251
proofs_batch_size: int = Field(default=200)
269252

cashu/mint/startup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
if key in [
3232
"mint_private_key",
3333
"mint_seed_decryption_key",
34-
"nostr_private_key",
3534
"mint_lnbits_key",
3635
"mint_blink_key",
3736
"mint_strike_key",
@@ -133,11 +132,15 @@ async def shutdown_mint():
133132
logger.info("Mint shutdown.")
134133
logger.remove()
135134

135+
136136
rpc_server = None
137+
138+
137139
async def start_management_rpc():
138140
global rpc_server
139141
rpc_server = await management_rpc.serve(copy(ledger))
140142

143+
141144
async def shutdown_management_rpc():
142145
if rpc_server:
143146
await management_rpc.shutdown(rpc_server)

cashu/nostr/.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

cashu/nostr/__init__.py

Whitespace-only changes.

cashu/nostr/bech32.py

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)