Commit Graph

29 Commits

Author SHA1 Message Date
callebtc
7abfc68cfa SIG_ALL signature flag for P2PK (#735)
* n_sigs_refund working, tests added

* update requirements

* wip sigall

* wip

* sigall works

* add signatures for refund

* add mint p2pk tests

* add more p2pk tests

* fix tests

* sign htlc pubkeys as well

* fix htlc and add new test

* fix regtest

* fix new tests with deprecated

* remove asserts

* comments

* new wallet p2pk tests

* getting there

* add more tests

* fixes

* refactor htlc and p2pk validation

* reduce code

* melt with sigall

* fix htlcs

* fix deprecated api tests

* Update cashu/mint/conditions.py

Co-authored-by: lollerfirst <43107113+lollerfirst@users.noreply.github.com>

* refactor sigall validation

---------

Co-authored-by: lollerfirst <43107113+lollerfirst@users.noreply.github.com>
2025-04-25 11:37:19 +02:00
Ofek Lev
3ab1e1dfb2 Upgrade coincurve to version 21.0.0 (#721) 2025-03-08 18:05:29 +00:00
callebtc
9456809a21 bump python version requirements in all files (#654) 2024-11-05 13:43:54 +01:00
Pavol Rusnak
9eb66a46d3 bump bip32 and coincurve dependencies (#612) 2024-09-08 14:08:50 +02:00
callebtc
8eea541b74 update requirements and docker build (#572) 2024-07-09 16:36:24 +02:00
callebtc
53cd8ff016 bump version to 0.15.1 (#461) 2024-02-26 01:50:37 +01:00
callebtc
2de9adf362 update requirements to 0.14.0 (#360) 2023-11-14 13:04:52 -03:00
callebtc
744807b6f4 Remove P2SH (#341)
* remove p2sh

* Fix WalletAPI LockResponse
2023-10-13 21:41:54 +02:00
callebtc
87c0adc60d update requirements.txt (#308) 2023-08-25 23:51:20 +02:00
dni ⚡
e374d32df7 [CHORE] updating dependencies, mainly fastapi (#302)
* [CHORE] updating dependencies, mainly fastapi

i updated all lib that i could. :) test seem to pass

downgrade uvicorn for mypy to pass

chore

fixup

formatting

* make flake8 didnt flake tests
2023-08-24 11:09:07 +02:00
callebtc
0b2468914d Determinstic secrets / ecash restore (#131)
* first working version but some sats go missing

* back at it

* make format

* restore to main

* move mint database

* fix some tests

* make format

* remove old _construct_outputs we reintroduced in merge with main

* add type annotations

* add wallet private key to tests

* wallet: load proofs

* fix tests

* _generate_secrets with deterministic generation (temporary)

* allow wallet initialization with custom private key

* add pk to wallet api test

* mint scope=module

* remove private_key from test_wallet.py to see if it helps with the github tests

* readd private keys to tests

* workflow without env

* add more private key!

* readd env

* ledger scope session

* add default private key for testing

* generate private keys if not available

* testing

* its working!!!

* first iteration of bip32 working

* get mint info and add many type annotations

* tests

* fix tests with bip32

* restore from multiple mints

* disable profiler

* make format

* failed POST /mint do not increment secret counter

* store derivation path in each token

* fix tests

* refactor migrations so private keys can be generated by the wallet with .with_db() classmethod

* start fixing tests

* all tests passing except those that need to set a specific private key

* bip39 mnemonic to seed - with db but restore doesnt work yet with custom seed

* mnemonic restore works

* enter mnemonic in cli

* fix tests to use different mnemonic

* properly ask user for seed input

* tests: dont ask for inputs

* try to fix tests

* fix cashu -d

* fixing

* bump version and add more text to mnemonic enter

* add more comments

* add many more comments and type annotations in the wallet

* dont print generated mnemonic and dont wait for input

* fix test

* does this fix tests?

* sigh....

* make format

* do not restore from an initialized wallet

* fix mnemonics

* fix nitpicks

* print wallet name if nonstandard wallet

* fix merge error and remove comments

* poetry lock and requirements

* remove unused code

* fix tests

* mnemonic.lower() and add keyset id if not present for backwards compat

* edit comment
2023-07-24 13:42:56 +02:00
callebtc
ae4eb43b8e fix wallet pubkey migration start (#259) 2023-06-23 20:21:21 +02:00
calle
4784163a0e bump version to 0.10.0 (#146) 2023-03-16 01:48:48 +01:00
callebtc
f956938a2d update importlib versions 2023-01-15 11:08:22 +01:00
callebtc
8184664fcb fix requirements 2023-01-15 11:00:01 +01:00
calle
344210d266 fix versions (#97) 2023-01-15 10:59:17 +01:00
callebtc
b9123d9bd2 add wheel package for secp 2022-12-26 17:43:19 +01:00
callebtc
9fc7694c6b bump 2022-12-26 17:24:16 +01:00
callebtc
d8cd648714 add tor 2022-10-29 18:07:13 +02:00
callebtc
6afc165a86 version changes for lnbits compatibility 2022-10-21 15:07:02 +02:00
callebtc
223a40e9bd bump version to 0.4.0 2022-10-15 01:08:35 +02:00
callebtc
777e419388 debug 2022-10-10 22:16:20 +02:00
callebtc
0e24579862 remove psycopg2 2022-10-03 01:02:27 +02:00
callebtc
50dc5a14ed requiremnts 2022-10-02 19:47:15 +02:00
callebtc
92052a7ed9 remove unused imports 2022-09-29 02:28:51 +02:00
callebtc
a33bbe0a30 cashu pypi 2022-09-18 23:52:04 +03:00
callebtc
a50bc35f0c no requirements 2022-09-17 15:16:36 +03:00
callebtc
6b470080eb mint start 2022-09-11 14:46:23 +03:00
callebtc
2721a03011 requirements 2022-09-11 12:58:19 +03:00