satkas 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- satkas-0.1.0/LICENSE +165 -0
- satkas-0.1.0/MANIFEST.in +28 -0
- satkas-0.1.0/PKG-INFO +111 -0
- satkas-0.1.0/README.md +61 -0
- satkas-0.1.0/pyproject.toml +8 -0
- satkas-0.1.0/requirements.txt +20 -0
- satkas-0.1.0/satkas/__init__.py +30 -0
- satkas-0.1.0/satkas/__main__.py +4 -0
- satkas-0.1.0/satkas/cli/__init__.py +1 -0
- satkas-0.1.0/satkas/cli/cli.py +41 -0
- satkas-0.1.0/satkas/core/__init__.py +9 -0
- satkas-0.1.0/satkas/core/blib/__init__.py +0 -0
- satkas-0.1.0/satkas/core/blib/baddress.py +12 -0
- satkas-0.1.0/satkas/core/blib/brpc.py +225 -0
- satkas-0.1.0/satkas/core/blib/btx_size.py +4 -0
- satkas-0.1.0/satkas/core/blib/scripting.py +92 -0
- satkas-0.1.0/satkas/core/db/__init__.py +0 -0
- satkas-0.1.0/satkas/core/db/models.py +185 -0
- satkas-0.1.0/satkas/core/klib/__init__.py +0 -0
- satkas-0.1.0/satkas/core/klib/kaddress.py +38 -0
- satkas-0.1.0/satkas/core/klib/kbech32.py +181 -0
- satkas-0.1.0/satkas/core/klib/kdatatype.py +109 -0
- satkas-0.1.0/satkas/core/klib/kgrpc.py +138 -0
- satkas-0.1.0/satkas/core/klib/kopcodes.py +207 -0
- satkas-0.1.0/satkas/core/klib/ksign.py +293 -0
- satkas-0.1.0/satkas/core/klib/ktransactions.py +143 -0
- satkas-0.1.0/satkas/core/klib/ktx_mass.py +164 -0
- satkas-0.1.0/satkas/core/klib/messages_pb2.py +41 -0
- satkas-0.1.0/satkas/core/klib/messages_pb2_grpc.py +97 -0
- satkas-0.1.0/satkas/core/klib/rpc_pb2.py +366 -0
- satkas-0.1.0/satkas/core/klib/rpc_pb2_grpc.py +24 -0
- satkas-0.1.0/satkas/core/klib/schnorr_signature.py +243 -0
- satkas-0.1.0/satkas/core/klib/script_builder.py +90 -0
- satkas-0.1.0/satkas/core/klib/scripting.py +323 -0
- satkas-0.1.0/satkas/core/klib/serialization.py +194 -0
- satkas-0.1.0/satkas/core/p2p/__init__.py +0 -0
- satkas-0.1.0/satkas/core/p2p/maker_p2p_node.py +212 -0
- satkas-0.1.0/satkas/core/p2p/p2p_node.py +339 -0
- satkas-0.1.0/satkas/core/p2p/taker_p2p_node.py +88 -0
- satkas-0.1.0/satkas/core/services/__init__.py +4 -0
- satkas-0.1.0/satkas/core/services/base_service.py +212 -0
- satkas-0.1.0/satkas/core/services/bitcoind_service.py +813 -0
- satkas-0.1.0/satkas/core/services/bitcoind_wallet_service.py +356 -0
- satkas-0.1.0/satkas/core/services/external_btc_wallet_service.py +83 -0
- satkas-0.1.0/satkas/core/services/external_kaspawallet_service.py +103 -0
- satkas-0.1.0/satkas/core/services/external_ln_wallet_service.py +178 -0
- satkas-0.1.0/satkas/core/services/internal_kaspawallet_service.py +216 -0
- satkas-0.1.0/satkas/core/services/kaspa_explorer_service.py +583 -0
- satkas-0.1.0/satkas/core/services/kaspad_service.py +620 -0
- satkas-0.1.0/satkas/core/services/kaspawallet_service.py +309 -0
- satkas-0.1.0/satkas/core/services/lnbits_service.py +329 -0
- satkas-0.1.0/satkas/core/services/lncli_service.py +438 -0
- satkas-0.1.0/satkas/core/services/mempool_service.py +581 -0
- satkas-0.1.0/satkas/core/services/rustykaspawallet_service.py +451 -0
- satkas-0.1.0/satkas/core/services/service_manager.py +602 -0
- satkas-0.1.0/satkas/core/services/tor_service.py +126 -0
- satkas-0.1.0/satkas/core/swapper/__init__.py +0 -0
- satkas-0.1.0/satkas/core/swapper/atomic_swap.py +370 -0
- satkas-0.1.0/satkas/core/swapper/counterparty.py +1618 -0
- satkas-0.1.0/satkas/core/swapper/maker.py +1403 -0
- satkas-0.1.0/satkas/core/swapper/swap_errors.py +71 -0
- satkas-0.1.0/satkas/core/swapper/swap_events.py +68 -0
- satkas-0.1.0/satkas/core/swapper/swap_interaction.py +121 -0
- satkas-0.1.0/satkas/core/swapper/taker.py +2163 -0
- satkas-0.1.0/satkas/main.py +293 -0
- satkas-0.1.0/satkas/main_app.kv +110 -0
- satkas-0.1.0/satkas/ui/__init__.py +0 -0
- satkas-0.1.0/satkas/ui/media/__init__.py +10 -0
- satkas-0.1.0/satkas/ui/media/bitcoin_logo.png +0 -0
- satkas-0.1.0/satkas/ui/media/kaspa-icon-green.png +0 -0
- satkas-0.1.0/satkas/ui/screens/__init__.py +0 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/__init__.py +19 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/base_responsive_layout.py +57 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/common/__init__.py +7 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/desktop/__init__.py +9 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/desktop/desktop_layout.kv +21 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/desktop/desktop_layout.py +81 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/mobile/__init__.py +9 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/mobile/mobile_layout.kv +18 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/mobile/mobile_layout.py +36 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/tablet/__init__.py +9 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/tablet/tablet_layout.kv +22 -0
- satkas-0.1.0/satkas/ui/screens/base_responsive_layout/tablet/tablet_layout.py +37 -0
- satkas-0.1.0/satkas/ui/screens/dashboard_screen/__init__.py +4 -0
- satkas-0.1.0/satkas/ui/screens/dashboard_screen/dashboard_screen.kv +144 -0
- satkas-0.1.0/satkas/ui/screens/dashboard_screen/dashboard_screen.py +274 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/__init__.py +8 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/__init__.py +21 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/attention_pulse.py +36 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/contract_field.kv +86 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/contract_field.py +68 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/invoice_field.kv +103 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/invoice_field.py +353 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/payment_field.kv +73 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/payment_field.py +112 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/payout_bar.kv +137 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/payout_bar.py +396 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/peer_selector.kv +53 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/peer_selector.py +367 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/status_widget.kv +102 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/status_widget.py +101 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/swap_editor.kv +189 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/components/swap_editor.py +471 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/kivy_interaction.py +107 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/quick_swap_v2_screen.kv +210 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/quick_swap_v2_screen.py +1657 -0
- satkas-0.1.0/satkas/ui/screens/quick_swap_v2/swap_controller.py +423 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/__init__.py +3 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/__init__.py +19 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/bitcoin_setup_page.kv +246 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/bitcoin_setup_page.py +152 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/btc_wallet_setup_page.kv +222 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/btc_wallet_setup_page.py +147 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/kaspa_wallet_setup_page.kv +315 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/kaspa_wallet_setup_page.py +227 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/kaspad_setup_page.kv +230 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/kaspad_setup_page.py +212 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/landing_page.kv +61 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/landing_page.py +26 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/ln_wallet_setup_page.kv +332 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/ln_wallet_setup_page.py +312 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/password_setup_page.kv +120 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/password_setup_page.py +70 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/tor_setup_page.kv +130 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/pages/tor_setup_page.py +110 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/setup_wizard.kv +39 -0
- satkas-0.1.0/satkas/ui/screens/setup_wizard/setup_wizard.py +227 -0
- satkas-0.1.0/satkas/ui/utils/__init__.py +5 -0
- satkas-0.1.0/satkas/ui/utils/qr_utils.py +51 -0
- satkas-0.1.0/satkas.egg-info/PKG-INFO +111 -0
- satkas-0.1.0/satkas.egg-info/SOURCES.txt +135 -0
- satkas-0.1.0/satkas.egg-info/dependency_links.txt +1 -0
- satkas-0.1.0/satkas.egg-info/entry_points.txt +2 -0
- satkas-0.1.0/satkas.egg-info/requires.txt +21 -0
- satkas-0.1.0/satkas.egg-info/top_level.txt +1 -0
- satkas-0.1.0/setup.cfg +4 -0
- satkas-0.1.0/setup.py +95 -0
satkas-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
satkas-0.1.0/MANIFEST.in
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Files needed to build / describe the source distribution
|
|
2
|
+
include LICENSE
|
|
3
|
+
include README.md
|
|
4
|
+
include requirements.txt
|
|
5
|
+
include pyproject.toml
|
|
6
|
+
include setup.py
|
|
7
|
+
|
|
8
|
+
# UI assets (also listed via setup.py package_data)
|
|
9
|
+
recursive-include satkas *.kv
|
|
10
|
+
recursive-include satkas *.png
|
|
11
|
+
|
|
12
|
+
# Secrets and local artifacts
|
|
13
|
+
exclude satkas/core/klib/wallet.proto
|
|
14
|
+
exclude satkas/core/klib/wallet_pb2.py
|
|
15
|
+
global-exclude *.env
|
|
16
|
+
global-exclude *hidden_service_key*
|
|
17
|
+
global-exclude satkas.db
|
|
18
|
+
global-exclude *.db
|
|
19
|
+
global-exclude __pycache__
|
|
20
|
+
global-exclude *.py[cod]
|
|
21
|
+
global-exclude *.egg-info
|
|
22
|
+
global-exclude .DS_Store
|
|
23
|
+
|
|
24
|
+
prune build
|
|
25
|
+
prune dist
|
|
26
|
+
prune venv
|
|
27
|
+
prune .venv
|
|
28
|
+
prune .cursor
|
satkas-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: satkas
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Bitcoin-Kaspa Atomic Swap Utility
|
|
5
|
+
Home-page: https://github.com/LordStapy/satkas
|
|
6
|
+
Author: LordStapy
|
|
7
|
+
License: LGPLv3
|
|
8
|
+
Keywords: btc kas atomic-swap kivy p2p
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: aiohttp==3.14.3
|
|
19
|
+
Requires-Dist: aiohttp_socks==0.12.0
|
|
20
|
+
Requires-Dist: asynckivy==0.6.4
|
|
21
|
+
Requires-Dist: bip44==0.1.6
|
|
22
|
+
Requires-Dist: bitcoin-utils==0.8.5
|
|
23
|
+
Requires-Dist: bolt11==2.2.0
|
|
24
|
+
Requires-Dist: certifi==2026.7.22
|
|
25
|
+
Requires-Dist: coincurve==20.0.0
|
|
26
|
+
Requires-Dist: grpcio==1.68.1
|
|
27
|
+
Requires-Dist: inputimeout==1.0.4
|
|
28
|
+
Requires-Dist: kivy==2.3.1
|
|
29
|
+
Requires-Dist: materialyoucolor==3.0.4
|
|
30
|
+
Requires-Dist: peewee==4.5.0
|
|
31
|
+
Requires-Dist: pillow==12.3.0
|
|
32
|
+
Requires-Dist: protobuf==5.28.1
|
|
33
|
+
Requires-Dist: python-socks[asyncio]==2.5.1
|
|
34
|
+
Requires-Dist: qrcode[pil]==8.0
|
|
35
|
+
Requires-Dist: stem==1.8.2
|
|
36
|
+
Provides-Extra: kivymd
|
|
37
|
+
Requires-Dist: kivymd==2.0.0; extra == "kivymd"
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: classifier
|
|
40
|
+
Dynamic: description
|
|
41
|
+
Dynamic: description-content-type
|
|
42
|
+
Dynamic: home-page
|
|
43
|
+
Dynamic: keywords
|
|
44
|
+
Dynamic: license
|
|
45
|
+
Dynamic: license-file
|
|
46
|
+
Dynamic: provides-extra
|
|
47
|
+
Dynamic: requires-dist
|
|
48
|
+
Dynamic: requires-python
|
|
49
|
+
Dynamic: summary
|
|
50
|
+
|
|
51
|
+
## 🔄 SatKas - a BTC-KAS Atomic Swap Platform
|
|
52
|
+
|
|
53
|
+
### *Bridging Bitcoin and Kaspa Without Boundaries*
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### Getting Started:
|
|
58
|
+
|
|
59
|
+
**Requirements:**
|
|
60
|
+
|
|
61
|
+
- `tor` is required
|
|
62
|
+
- any LN wallet for receiving sats. **For sending payments, make sure the wallet displays the payment preimage**.
|
|
63
|
+
- any Kaspa / Bitcoin wallet can be used. One-click payments are available for go-kaspawallet and bitcoind users.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
**Install:**
|
|
68
|
+
|
|
69
|
+
Note: kivymd has a dependency on the [cairo graphics library](https://cairographics.org/), SatKas doesn't use widgets requiring cairo rendering and we can bypass it with the following commands:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
# It's recommended to use a virtual environment
|
|
73
|
+
python3 -m venv venv
|
|
74
|
+
source venv/bin/activate
|
|
75
|
+
# Install kivymd without dependencies
|
|
76
|
+
pip3 install kivymd==2.0.0 --no-deps
|
|
77
|
+
pip3 install satkas
|
|
78
|
+
# The error complaining about the missing materialshapes is expected, it's the cairo one we bypassed
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
If you have cairo installed, you can directly run:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
pip3 install 'satkas[kivymd]'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
#### Start the UI app:
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
satkas
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**SatKas is experimental software, test it with small amounts of KAS and sats!**
|
|
96
|
+
|
|
97
|
+
Missing / limitations:
|
|
98
|
+
|
|
99
|
+
- Example scripts were not updated, they are most likely broken.
|
|
100
|
+
- P2P layer is not exposed to UI yet, makers are hardcoded.
|
|
101
|
+
- UI is Taker only, Maker interface TBD.
|
|
102
|
+
- DB is NOT encrypted, all configs (including passwords) are stored in plaintext.
|
|
103
|
+
|
|
104
|
+
Swaps work in **both directions**, users can exchange:
|
|
105
|
+
|
|
106
|
+
- Bitcoin (on-chain or LN) ---> KAS
|
|
107
|
+
- KAS ---> Bitcoin (on-chain or LN)
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
For feedback and suggestions: tag me in Kaspa Official Discord server or drop a message on Telegram (@LordStapy)
|
satkas-0.1.0/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
## 🔄 SatKas - a BTC-KAS Atomic Swap Platform
|
|
2
|
+
|
|
3
|
+
### *Bridging Bitcoin and Kaspa Without Boundaries*
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### Getting Started:
|
|
8
|
+
|
|
9
|
+
**Requirements:**
|
|
10
|
+
|
|
11
|
+
- `tor` is required
|
|
12
|
+
- any LN wallet for receiving sats. **For sending payments, make sure the wallet displays the payment preimage**.
|
|
13
|
+
- any Kaspa / Bitcoin wallet can be used. One-click payments are available for go-kaspawallet and bitcoind users.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
**Install:**
|
|
18
|
+
|
|
19
|
+
Note: kivymd has a dependency on the [cairo graphics library](https://cairographics.org/), SatKas doesn't use widgets requiring cairo rendering and we can bypass it with the following commands:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
# It's recommended to use a virtual environment
|
|
23
|
+
python3 -m venv venv
|
|
24
|
+
source venv/bin/activate
|
|
25
|
+
# Install kivymd without dependencies
|
|
26
|
+
pip3 install kivymd==2.0.0 --no-deps
|
|
27
|
+
pip3 install satkas
|
|
28
|
+
# The error complaining about the missing materialshapes is expected, it's the cairo one we bypassed
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
If you have cairo installed, you can directly run:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
pip3 install 'satkas[kivymd]'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
#### Start the UI app:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
satkas
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**SatKas is experimental software, test it with small amounts of KAS and sats!**
|
|
46
|
+
|
|
47
|
+
Missing / limitations:
|
|
48
|
+
|
|
49
|
+
- Example scripts were not updated, they are most likely broken.
|
|
50
|
+
- P2P layer is not exposed to UI yet, makers are hardcoded.
|
|
51
|
+
- UI is Taker only, Maker interface TBD.
|
|
52
|
+
- DB is NOT encrypted, all configs (including passwords) are stored in plaintext.
|
|
53
|
+
|
|
54
|
+
Swaps work in **both directions**, users can exchange:
|
|
55
|
+
|
|
56
|
+
- Bitcoin (on-chain or LN) ---> KAS
|
|
57
|
+
- KAS ---> Bitcoin (on-chain or LN)
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
For feedback and suggestions: tag me in Kaspa Official Discord server or drop a message on Telegram (@LordStapy)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Build backend only. Project metadata still lives in setup.py / satkas/__init__.py.
|
|
2
|
+
# Do not add a [project] table here: it would duplicate (and conflict with) setup().
|
|
3
|
+
# Do not add [tool.setuptools] either: current setuptools then validates an empty
|
|
4
|
+
# [project] and fails with "project must contain ['version']".
|
|
5
|
+
|
|
6
|
+
[build-system]
|
|
7
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
8
|
+
build-backend = "setuptools.build_meta"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
aiohttp==3.14.3
|
|
2
|
+
aiohttp_socks==0.12.0
|
|
3
|
+
asynckivy==0.6.4
|
|
4
|
+
bip44==0.1.6
|
|
5
|
+
bitcoin-utils==0.8.5
|
|
6
|
+
bolt11==2.2.0
|
|
7
|
+
certifi==2026.7.22
|
|
8
|
+
coincurve==20.0.0
|
|
9
|
+
grpcio==1.68.1
|
|
10
|
+
inputimeout==1.0.4
|
|
11
|
+
kivy==2.3.1
|
|
12
|
+
#kivymd==2.0.0 # kivymd is installed separately with --no-deps to avoid pycairo dependency
|
|
13
|
+
materialyoucolor==3.0.4
|
|
14
|
+
peewee==4.5.0
|
|
15
|
+
#pexpect==4.9.0 # pexpect is only used by RustyKaspaWallet which is not really used
|
|
16
|
+
pillow==12.3.0
|
|
17
|
+
protobuf==5.28.1
|
|
18
|
+
python-socks[asyncio]==2.5.1
|
|
19
|
+
qrcode[pil]==8.0
|
|
20
|
+
stem==1.8.2
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
__name__ = 'satkas'
|
|
3
|
+
__version__ = '0.1.0'
|
|
4
|
+
__author__ = 'LordStapy'
|
|
5
|
+
__license__ = 'LGPLv3'
|
|
6
|
+
__url__ = 'https://github.com/LordStapy/satkas'
|
|
7
|
+
__description__ = 'Bitcoin-Kaspa Atomic Swap Utility'
|
|
8
|
+
__keywords__ = 'btc kas atomic-swap kivy p2p'
|
|
9
|
+
__classifiers__ = [
|
|
10
|
+
'Development Status :: 3 - Alpha',
|
|
11
|
+
'Intended Audience :: Developers',
|
|
12
|
+
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
|
13
|
+
'Programming Language :: Python :: 3',
|
|
14
|
+
'Programming Language :: Python :: 3 :: Only',
|
|
15
|
+
'Programming Language :: Python :: 3.10',
|
|
16
|
+
]
|
|
17
|
+
__all__ = [
|
|
18
|
+
'main',
|
|
19
|
+
'core',
|
|
20
|
+
'ui',
|
|
21
|
+
'cli',
|
|
22
|
+
__name__,
|
|
23
|
+
__version__,
|
|
24
|
+
__author__,
|
|
25
|
+
__license__,
|
|
26
|
+
__url__,
|
|
27
|
+
__description__,
|
|
28
|
+
__keywords__,
|
|
29
|
+
__classifiers__
|
|
30
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .cli import main
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# satkas/cli/cli.py
|
|
2
|
+
"""Console entry point for the SatKas GUI.
|
|
3
|
+
|
|
4
|
+
Supports:
|
|
5
|
+
satkas
|
|
6
|
+
satkas --peer <onion>
|
|
7
|
+
MAKER_ENDPOINT=<onion> satkas
|
|
8
|
+
"""
|
|
9
|
+
import os
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
# Before logging.basicConfig and before importing satkas.main / Kivy.
|
|
13
|
+
os.environ["KIVY_NO_CONSOLELOG"] = "1"
|
|
14
|
+
os.environ["KCFG_KIVY_LOG_LEVEL"] = "error"
|
|
15
|
+
|
|
16
|
+
import argparse
|
|
17
|
+
import logging
|
|
18
|
+
|
|
19
|
+
logging.basicConfig(level=logging.INFO)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main():
|
|
23
|
+
# Must run before importing satkas.main — Kivy parses sys.argv at
|
|
24
|
+
# import time and rejects unknown options like --peer.
|
|
25
|
+
parser = argparse.ArgumentParser(prog="satkas")
|
|
26
|
+
parser.add_argument(
|
|
27
|
+
"--peer",
|
|
28
|
+
default=None,
|
|
29
|
+
help="Force a maker onion endpoint (sets MAKER_ENDPOINT)",
|
|
30
|
+
)
|
|
31
|
+
args, remaining = parser.parse_known_args()
|
|
32
|
+
if args.peer:
|
|
33
|
+
os.environ["MAKER_ENDPOINT"] = args.peer
|
|
34
|
+
sys.argv = [sys.argv[0]] + remaining
|
|
35
|
+
|
|
36
|
+
from satkas.main import main as satkas_main
|
|
37
|
+
satkas_main()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if __name__ == "__main__":
|
|
41
|
+
main()
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
from bitcoinutils.keys import PublicKey
|
|
5
|
+
from bitcoinutils.setup import setup as btc_network_setup
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def p2wpkh_address(pubkey):
|
|
9
|
+
assert len(pubkey) == 33 # only compressed keys for P2WPKH
|
|
10
|
+
btc_network_setup(os.getenv('BTC_NETWORK', 'mainnet'))
|
|
11
|
+
pubkey = PublicKey(hex_str=pubkey.hex())
|
|
12
|
+
return pubkey.get_segwit_address()
|