Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys management #398

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9cde2c9
mostro key management logic start
arkanoider Dec 4, 2024
29776c4
working on incoming messages with trade-index
arkanoider Dec 5, 2024
e1dec18
bumps to mostro-core 0.6.12
grunch Dec 6, 2024
4d199c8
Added parsing function in app.rs - not compiling
arkanoider Dec 6, 2024
9924898
working on key management - added initial check on messages and start…
arkanoider Dec 8, 2024
7596afa
small fixes on CRUD and messages - need message fixing and improvement
arkanoider Dec 8, 2024
76b3474
typos cant-do
arkanoider Dec 8, 2024
db7e1be
fixing trade index in take sell and take buy
arkanoider Dec 9, 2024
e3e4ebf
adding trade index in msg in show hold invoice
arkanoider Dec 9, 2024
693cb9c
rough refactoring of MessageKind with new Payload field - TBD
arkanoider Dec 9, 2024
cf4140a
Bumps to nostr-sdk 0.37
grunch Dec 10, 2024
477f244
More cosmetics and payload related fixes
grunch Dec 10, 2024
a5385f6
mostrod compiles and checks incoming messages to check trade index - …
arkanoider Dec 10, 2024
31f8ee3
Bumps mostro-core to 0.6.15
grunch Dec 11, 2024
ec17876
bumps lnurl version
grunch Dec 11, 2024
617548e
Fix tests
grunch Dec 11, 2024
df2c53b
Fix signature verification in rumor
grunch Dec 11, 2024
8eafef6
Add LIMIT 1 on fetch_one() db
grunch Dec 11, 2024
9fec4cf
added indexes for buyer and seller in db table
arkanoider Dec 11, 2024
819670b
Code refactoring and fixes
grunch Dec 12, 2024
ca38530
Improve error management
grunch Dec 13, 2024
3a63750
Fix: changed to trade keys the receiver of the messages of take-sell
arkanoider Dec 15, 2024
6f9af77
small improvement on new-order creation suggested by the rabbit
arkanoider Dec 15, 2024
4d7df93
bumped mostro-core for building
arkanoider Dec 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 53 additions & 130 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ anyhow = "1.0.89"
chrono = "0.4.35"
easy-hasher = "2.2.1"
lightning-invoice = { version = "0.32.0", features = ["std"] }
nostr-sdk = "0.36.0"
nostr-sdk = { version = "0.37.0", features = ["nip59"] }
serde = { version = "1.0.210" }
serde_json = "1.0.128"
sqlx = { version = "0.6.2", features = [
Expand All @@ -38,11 +38,12 @@ uuid = { version = "1.8.0", features = [
"serde",
] }
reqwest = { version = "0.12.1", features = ["json"] }
mostro-core = { version = "0.6.11", features = ["sqlx"] }
mostro-core = { version = "0.6.15", features = ["sqlx"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
config = "0.14.0"
clap = { version = "4.5.19", features = ["derive"] }
lnurl-rs = "0.8.0"
lnurl-rs = "0.9.0"
openssl = { version = "0.10.66", features = ["vendored"] }
once_cell = "1.20.2"
bitcoin = "0.32.5"
5 changes: 3 additions & 2 deletions migrations/20221222153301_orders.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ CREATE TABLE IF NOT EXISTS orders (
seller_sent_rate integer default 0,
payment_attempts integer default 0,
failed_payment integer default 0,
expires_at integer not null
);
expires_at integer not null,
trade_index integer default 0
);
Loading
Loading