Commit graph

1636 commits

Author SHA1 Message Date
relativisticelectron
1f0915054c
Bugfix: Addressinfo (#2001) 2022-12-19 21:30:17 +01:00
Manolis Mandrapilias
ecbb69d858
Chore: Cypress test for address labeling (#2021) 2022-12-19 16:57:08 +01:00
OTK
ab0245ca48
UIUX: Address labeling revamp (#1978)
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-12-16 19:59:41 +01:00
k9ert
5b737974e0
Bugfix: Version has not been properly detected (#2020)
* Bugfix: current version was not properly detected

* fix version stuck in ext_gen
2022-12-16 19:14:56 +01:00
k9ert
9fc3ea87ad
Chore: generic better error_handling for API calls (#2014)
* Chore: generic better error_handling for API calls

* pricebar and toggle_privacy

* fetchAddressData

* Remove anoying log-msg

* fix cypress test (hopefully)

* remove unnecessary code

* return response in send_request if it is error msg

* tx-table adapted with send_request

* variable declarations of api responses

* account for booleans as response values

* typo in rpc error handler

* try catch block in send_request added & type checking fixes

* tests for errorhandling

* use Headers()

* check for null not undefined

* remove log flodding and always returning an object

* fix tests

* Improved exception handling

* specify better Types for Exception

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-12-13 14:23:04 +01:00
hodlwave
e5e87a7ac8
Chore: Fix nix shell by generating hashes with pip-compile (#2016) 2022-12-12 10:40:13 +01:00
k9ert
2f27befb39
Bugfix: Wallets take a lot of time to be loaded at start-up with Spectrum (#2015) 2022-12-09 20:15:54 +01:00
dependabot[bot]
7867a086e3
Chore(deps): Bump qs from 6.5.2 to 6.5.3 in /pyinstaller/electron (#2002)
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: k9ert <k9ert@gmx.de>
2022-12-09 15:58:35 +01:00
k9ert
cc924ea2b4
Bugfix: Error-msgs for txlist API call (Unsupported merkle proof) (#2012)
* Adding spectrum without tests

* added spectrum ext specific tests

* fix reflection test

* better error management for validate_merkle_proof

* remove try-block

* rescanblockchain not implemented

* better explaination of the merkle proofs option

* more concise error msg.

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-12-09 11:00:31 +01:00
relativisticelectron
c7bd49bfa5
Doc: Corrected build instructions (#1996)
* fix-build-instructions

* set "pip3 install -e ."

* added require-hashes back in

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: k9ert <k9ert@gmx.de>
2022-12-09 10:10:42 +01:00
k9ert
ef4012d4b1
Chore: Moving the Spectrum extension to a core extension (#2011)
* Adding spectrum without tests
* added spectrum ext specific tests
* fix reflection test
2022-12-08 16:01:12 +01:00
BitcoinQnA
77d27cf8af
UIUX: Update Passport Connection Instructions (#2010)
To suit the new UI in Passport Batch 2
2022-12-08 15:24:21 +01:00
k9ert
722cbd23cf
Chore: Error handling (#2008) 2022-12-08 09:37:57 +01:00
k9ert
6b22e71698
Chöre: better error_handling and tested (#2005)
* better error_handling and tested

* fix cypress

* fix tests

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-12-07 21:52:38 +01:00
k9ert
3ad8f22e2f
Bugfix: Adding migrations to the hidden imports (#2007)
Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-12-07 18:24:23 +01:00
Manolis Mandrapilias
4e33a4f438
Docs: Release guide update (#2004) 2022-12-07 16:25:23 +01:00
Manolis Mandrapilias
52bff48a21
Docs: release notes added (#2003) 2022-12-07 12:03:01 +01:00
k9ert
6e9e36be6f
Bugfix: Some smaller fixes (#1995)
* delete_wallet_file for non-leaky-abstractions

* delete_wallet_file improvement

* upgrade spectrum to v0.2.4
2022-12-06 20:10:24 +01:00
Manolis Mandrapilias
29c28db9bd
Feature: Deactivate hot wallets for extensions (Spectrum) for now (#1999)
* device based approach + prop in specter

* Revert "device based approach + prop in specter"

This reverts commit af5d6f9fdb.

* add filter ability for nodes to reject Devices

* avoid double negation and adapt front end

* also check in new_device_type for unwanted devices

* fixes

* enable both device and device_types

* better naming

* renaming

* release test asserts

* more explicit tool-tip text for not supported device by node

Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-12-06 18:27:14 +01:00
k9ert
f5e52fb1eb
Bugfix: bump spectrum to 0.2.1 (#1994) 2022-12-02 14:37:02 +01:00
k9ert
6f72a5ccd0
Bugfix: Failover for non-existent nodes (#1992) 2022-12-02 13:04:37 +01:00
OTK
da0731d6c9
UIUX: Clearer language for incomplete transactions tab (#1972) 2022-12-02 12:49:14 +01:00
OTK
f478106eb0
Chore: Remove arrows and clickable headers on transactions table (for now) (#1973)
* cleanup:(transactions) remove arrows and clickable headers while sorting functionality is broken in transactions table
* remove arrow for time column

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-12-02 12:04:19 +01:00
k9ert
9df0b77f8c
Feature: Spectrum addition (#1952)
* add spectrum

* rc3 of spectrum

* spectrum rc4

* missing __init__.py

* changes for rc6

* make cli-arguments work in electron

* update spectrum to remove simplejson

* Bugfix devices not shown

* additional checks for wallet_import

* nodes template magic to improve extensibility

* smaller bugfixes

* update spectrum

* keep python 3.9 in pre-commit-yaml

* specter_added_to_flask_app callback added

* useful logger + avoid writing to config with no node alias

* Using FlaskThread

* remove overriding chain property in node.py

* nodes_by_chain method added to node mananger

* icons for spectrum setup

* keep external_node and fix test

* bump spectrum version

* more visibility

* deactivate checker_threads for testing

Co-authored-by: k9ert <kim@swanbitcoin.com>
Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-11-30 13:13:16 +01:00
k9ert
bf4413587a
Bugfix: Release procedure fix (#1988)
* fix data-loading code for pyinstaller binary

* more info at buildtime

* more info

* bugfix: str used wrong

* black

Co-authored-by: k9ert <kim@swanbitcoin.com>
Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-11-29 17:49:35 +01:00
k9ert
65c45281c7
Chore: Flask thread for wallet manager (#1962)
* missing __init__.py

* Add Device modules to hidden imports

* make cli-arguments work in electron

* Bugfix devices not shown

* additional checks for wallet_import

* nodes template magic to improve extensibility

* smaller bugfixes

* copying the request_context for wallet_manager update method and no threading for tests

Co-authored-by: k9ert <kim@swanbitcoin.com>
2022-11-29 16:49:54 +01:00
Manolis Mandrapilias
857f25a487
Chore: Node manager refactoring (#1974)
* refactoring of node manager + tests
Co-authored-by: k9ert <kim@swanbitcoin.com>
2022-11-23 17:50:25 +01:00
Manolis Mandrapilias
48bccfa126
Bugfix: Updating the auto-withdrawal in Swan integration could lead to an error (#1981)
* if enough addresses reserved return an empty list + tests

* client test fixed + test for reserve_addresses for swan service

* ignore_cleanup_errors=True + dev doc updated

* fix select of threshold in settings

* test for set_autowithdrawal_settings

* fix test

Co-authored-by: k9ert <kim@swanbitcoin.com>
2022-11-22 21:07:36 +01:00
Manolis Mandrapilias
dd4b10668d
chore: adding sequence diagram for swan flow (#1969)
Co-authored-by: k9ert <k9ert@gmx.de>
2022-11-21 18:48:55 +01:00
Manolis Mandrapilias
a729ae7ae2
Bugfix: Incomplete wallet deletion (#1950)
Also:
* threading for testing via specter config
* helpful output for flaky tests

Co-authored-by: k9ert <kim@swanbitcoin.com>
2022-11-14 21:26:32 +01:00
kdmukai
aba2afe9bd
Feature: Add taproot psbt fields (#1837)
* Adds BIP-371 Taproot bip32 derivation fields

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>
2022-11-11 17:18:35 +00:00
Manolis Mandrapilias
a739a062ca
Feature: QR support for Jade (#1964) 2022-11-10 09:10:08 +00:00
k9ert
bef9cf69f8
Bugfixes: Various bugfixes (#1959)
* missing __init__.py

* Add Device modules to hidden imports

* make cli-arguments work in electron

* Bugfix devices not shown

* additional checks for wallet_import

* Update src/cryptoadvance/specter/util/wallet_importer.py

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>

* Update src/cryptoadvance/specter/util/wallet_importer.py

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>

* Update src/cryptoadvance/specter/util/wallet_importer.py

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>

Co-authored-by: k9ert <kim@swanbitcoin.com>
Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-11-07 17:08:54 +01:00
relativisticelectron
1d2fea976a
Bugfix: No encryption for devhel extension required (#1942)
* make that user_secret_decrypted_required is not required for devehlp

* tiny fix for unset wallets

Co-authored-by: k9ert <k9ert@gmx.de>
2022-11-04 15:45:50 +01:00
k9ert
ba5873d23b
Chore: Tagging specterext-dummy with every release (#1944)
* Chore: Tagging specterext-dummy

* update var

* known hosts

* yaml invalid

* Activate release-jobs again

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-11-04 11:42:03 +01:00
k9ert
65bb7d2309
Chore: Refactor Swan Extension to cryptoadvance.specterext (#1955)
* Refactor Swan service, delete bitcoinreserve

fix tests for services move to specterext and complete

* complete refactoring of swan extension

* added a test

* feedback manolis

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
2022-11-03 10:01:43 +01:00
k9ert
55e2a5fb76
Chore: Making netlify more robust (#1953)
* Chore: netlify issues
* prepare mkdocs-wrapper for different exec
* adjust site dir
2022-11-02 16:47:51 +01:00
k9ert
de8f5af619
Feature: several things for Spectrum preparation (#1913)
* change Node persistence format

* Removing the Singleton

* mainly refactoring

* intermediate commit

* fix test

* Updated diagram

* fix tests

* removing simplejsons references

* fix tests

* remove update, tests working

* abstract Node

* refining Migration framework: run migrations until they suceed

* BrokenCoreConnectionException added to handle lost RPC + some minor error handling fixes

* clicking redirects to node config if there is no node connection

* AbstractNode

* BrokenCoreConnectionException added to handle lost RPC + some minor error handling fixes

* clicking redirects to node config if there is no node connection

* handling broken connection when there is no other error superseding (i.e. no wallets)

* Abstract Node improvements and issue fixing

* improving node_info handling

* fix test results, property device_manager in user, bcce in get_rpc in node, improved rpc property in node

* typos

* provide data_folders for extensions

* parametrizing include for node_info

* Remove initial_node_contribution refactoring welcome

* adding convenience methods

* extension data-storage

* Tests green

* Better failure resistence

* Enabling Node settings

* error handling

* adjust_view_model callback

* exception Handling

* Shielding core from extension flaws

* More consistent logging

* Refactoring wallets endpoints

* Make wallet_overview extendable

* butgifex and cleanup

* feedback by Manolis

* rename BusinessObject to PersistentObject

* fix Error-management and rollback information

* Nodes.md corrections

* frontend-aspects.md (small) corrections

* fix tests and address feedback and errormanagement

* fix tests, proper error-handling

* Fix test_util_reflection

* just some little addons to test_util_reflection

* fix cleanup_on_exit

* migration fix

* remove check, add redirect after saving node

* fix test (not that cool but what to do?)

* upgrade Flask as Flask-SQLAlchemy needs higher Flask version

* Revert "upgrade Flask as Flask-SQLAlchemy needs higher Flask version"

This reverts commit bf24120f89.

* update bug fixed + node manager added to node test

* cleanup external_node

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-10-29 15:54:34 +02:00
k9ert
9a3f92d618
Feature: --devstatus-threshold for cli_server (#1945) 2022-10-26 20:30:23 +02:00
Manolis Mandrapilias
59779fc755
Chore: Refactoring of wallet tests (#1943)
* refactoring of fixtures and wallet tests
* bottleneck mark
2022-10-26 13:15:01 +02:00
cstizza
07cd0382e0
Docs: Update connect-your-node.md (#1937)
*Added useful link to Jameson Lopp's very helpful bitcoin.conf generator.
2022-10-25 19:10:55 +02:00
kdmukai
d2d3c1200c
Feature: QR message signing for SeedSigner (#1938)
* supports_qr_message_signing added
* cypress test adapted

Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-10-25 17:00:36 +02:00
Manolis Mandrapilias
cdd09fcd70
ext_wallettabs does not have to be set (#1941) 2022-10-25 15:44:58 +02:00
k9ert
e1c10c2eb9
Bugfix: Wrong device paths (#1936) 2022-10-25 12:54:14 +02:00
relativisticelectron
a45daba4f9
Chore: Make data encrytion for services optional (#1918)
* Removing the Singleton

* Updated diagram

* fix tests

* removing simplejsons references

* adding tests for encrypted Storages

* working that only the encrypted data is removed

# Conflicts:
#	src/cryptoadvance/specter/managers/service_manager.py
#	src/cryptoadvance/specter/services/service.py
#	src/cryptoadvance/specter/services/swan/service.py
#	tests/test_services.py

* remove classmethod

* Revert "remove classmethod"

This reverts commit 7b1859d3f6.

* better unlink text

* adding check that the correct services are removed from the users

Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-10-25 10:57:13 +02:00
relativisticelectron
0bd48ab837
Bugfix: Fix float issue (#1900)
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-10-20 21:22:52 +02:00
k9ert
92c12d3730
Chore: Update protobuf (#1933) 2022-10-20 15:37:31 +02:00
k9ert
f731f397b4
Chore: Removing the Singleton (#1914) 2022-10-20 14:59:29 +02:00
TrellixVulnTeam
08b63f8193
Security: CVE-2007-4559 Patch (#1927)
* Adding tarfile member sanitization to extractall()

* black and comment

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: k9ert <k9ert@gmx.de>
2022-10-20 12:56:19 +02:00
Ankur
793a8c5e69
Feature: Implement JWT authentication in REST API (#1785)
* Added jwt auth

* Added get and delete request, also added jwt functions

* Added proper naming conventions and status codes

* Added hashmap for storing key-value pair of jwt tokens

* Updated nomenclature and added descriptions to the Resources

* Implemented nested hashmap of jwt tokens

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added jwt token verification which can be used inplace of basic password verification

* Implemented token expiration check

* Added time parser for converting different units to seconds

* Changed parsing method

* Adding seperate token resource instead of secure resource

* Fixed test-rest.py and added token auth to AdminResource

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added new tests for jwt endpoints

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>

* Added documentation for jwt_endpoints

* Added curl and python usage

* reduce differences to master for requirements.txt

* refined API Documentation

* typo

* typos

* fix test

Signed-off-by: ankur12-1610 <anknerd.12@gmail.com>
Co-authored-by: Kim Neunert <k9ert@gmx.de>
2022-10-20 12:17:48 +02:00