anand k
657c1de16b
Remove state.shutdown or replaced with self._stopped from some network thread
2024-05-13 07:23:11 +05:30
anand k
28355d70c7
Made BMConnectionPool as global runtime variable in connectionpool from singleton
2024-05-09 19:53:54 +05:30
f28935f8fe
Avoid recursion when trying to build bitmsghash lib
...
in environments where prebuilt one is unusable and make doesn't work.
2024-05-05 23:22:34 +03:00
anand k
95af3a859b
Renamed dandelion flag to dandelion_enabled
2024-04-22 08:59:00 +05:30
anand k
1c8ae8fef3
moved Dandelion in state - global runtime variable from singleton
2024-04-21 22:40:19 +05:30
anand k
5faef8d40e
moved inventory in state - global runtime variable from singleton
2024-04-19 08:21:19 +05:30
anand k
d555a79200
Test cases for shared.py
2024-04-17 18:21:11 +05:30
0ed566500f
Use fallback.RIPEMD160Hash() in the test for deterministic keys
2024-04-16 20:18:37 +03:00
c51b2875df
Tests for keys generation
...
this implementation for deterministic keys requires a passphrase of type bytes
2024-04-16 20:18:37 +03:00
5c1dcc5645
Define functions for generating keys in the highlevelcrypto
2024-04-16 20:18:03 +03:00
d547a8be2f
Encode WIF string before passing to highlevelcrypto.decodeWalletImportFormat()
2024-04-15 05:27:45 +03:00
acab92c561
Add a test for random address generation
2024-04-15 05:27:45 +03:00
ae3ff8c07e
Fix outdated exception handlers for singleWorker._getKeysForAddress()
2024-04-14 04:58:26 +03:00
629efb253e
Update the test for disseminatePreEncryptedMsg API command
2024-04-13 17:16:46 +03:00
f6bd1546a7
Alias disseminatePreEncryptedMsg as disseminatePreparedObject, edit docstring
2024-04-13 06:34:30 +03:00
7836538290
Make PoW optional in disseminatePreEncryptedMsg
2024-04-13 06:34:30 +03:00
44a4a370a6
Use defaults while doing PoW for a preencrypted msg
2024-04-13 06:34:30 +03:00
e1ae33389c
Properly format all the keys samples
2024-04-13 06:33:59 +03:00
7348568c78
The test for double SHA512
2024-04-13 03:19:55 +03:00
3ed84a5863
Start adding hashes with double SHA512
2024-04-13 03:17:39 +03:00
1b9773f2cf
A dummy test for randomBytes
2024-04-12 15:47:06 +03:00
c7a3bfacfa
Move randomBytes to highlevelcrypto
2024-04-12 15:46:32 +03:00
feaee60632
Add a test for WIF decoding and encoding
2024-04-07 03:30:56 +03:00
c1ca7044d2
Moved decodeWalletImportFormat() from shared to highlevelcrypto,
...
not addresses, where it's supposed to be because it uses
pyelliptic.arithmetic, addresses.decodeBase58() returns int which needs
to be encoded. Defined encodeWalletImportFormat() and replaced all uses.
2024-04-07 03:30:50 +03:00
17a09a665b
Moved samples into the samples module
2024-04-06 03:47:51 +03:00
5a48ee0ad5
Add tests for base58 and WIF decoding using pyelliptic.arithmetic
2024-04-06 03:47:19 +03:00
799237c7ff
Don't use BMConfigParser in highlevelcrypto, instead use digestAlg kwarg,
...
both in .sign() and .verify(), extend TestHighlevelcrypto.test_signatures().
2024-04-05 03:10:24 +03:00
fd3567b3fa
Add a test for sign() and verify()
2024-04-05 02:44:28 +03:00
13d090e344
Use protocol.decodeObjectParameters() for sending ACK - put it in the inventory
2024-04-05 00:38:30 +03:00
2a93b04332
Fix api.HandleDisseminatePreEncryptedMsg() for python3
2024-04-05 00:38:30 +03:00
8fb6410097
Enable inventory item setting for python3
2024-04-05 00:38:30 +03:00
2030e08db3
A test for disseminatePreEncryptedMsg API command
2024-04-05 00:38:30 +03:00
1794384f01
Use decodeObjectParameters() in disseminatePreEncryptedMsg API command handler
2024-04-05 00:38:29 +03:00
9747f65884
Define a protocol function for decoding object parameters outside of network
2024-04-05 00:37:50 +03:00
anand k
a39fc2cff5
Test cases for helper_inbox.py
2024-03-29 07:46:20 +05:30
anand-skss
b8749c6d7c
Rename mockpb dir to mockbm
2024-03-22 08:54:15 +00:00
anand k
563e557b1b
Test cases for helper_sent
2024-03-22 11:53:12 +05:30
anand k
2e98a1eb2d
Test cases for helper_sql & Added mock library dependency in requirements.txt
2024-03-21 11:25:10 +05:30
anand k
6d8c7f3bbc
Renamed mock dir to mockpb
2024-03-20 07:27:38 +05:30
7dc91af6d8
Fix typo and formatting in tests.core
2024-03-14 21:26:43 +02:00
anand k
d8843791ab
Test cases for multiqueue
2024-03-08 20:07:05 +05:30
95659b6f6c
Fix bandit comments:
...
- suppress B301 in the single place where it appears,
- fix placement of B607, B603 in proofofwork and B324 in bitmessagekivy.
2024-03-06 13:59:13 +02:00
anand-skss
6a33fe58e1
Code Quality
2024-03-04 15:37:03 +00:00
19ec364b72
Code quality
2024-03-03 11:21:33 +08:00
anand-skss
d33959defc
Code Quality
2024-02-29 17:49:43 +00:00
anand-skss
c734ac7b5f
Code Quality
2024-02-28 15:42:37 +00:00
anand k
5af8b8d3f7
included defusedxml package for parsestring & cleaned upnp schema
2024-02-28 08:40:56 +05:30
anand k
dd64a7b507
Code Quality
2024-02-28 07:23:55 +05:30
348df1151f
Truly wait for pow in test_send_broadcast() in test_api
2024-02-26 17:22:39 +02:00
anand k
e5e0f43b42
Code Quality
2024-02-26 13:18:02 +05:30
anand k
c2e407ef5a
Code Quality - included B101 in tox.ini to ignore assert warning
2024-02-25 00:24:01 +05:30
anand k
b43c9c4a75
Code Quality
2024-02-23 23:50:04 +05:30
d545630ac7
Code quality
2024-02-22 13:44:04 +08:00
b3c5900eb3
Code quality fixes
2024-02-20 08:47:07 +08:00
8e95279906
Pad pubkey coordinates in pyelliptic.ECC.get_pubkey()
2024-02-01 17:20:46 +02:00
688094371e
Relax the assertion about privkey length
2024-02-01 17:20:46 +02:00
d3644aa354
Add a test for short pubkey coordinates
2024-02-01 17:20:13 +02:00
c45f1eae14
Test more deterministic commands, add timeouts in get from queue
2024-01-15 20:44:22 +02:00
d8e0c52ecd
Resolve some pylint warnings in class_addressGenerator
2024-01-15 20:44:22 +02:00
6045b587e9
Config values are strings
2024-01-15 20:44:22 +02:00
9a96cab080
Make sample_seed bytes as in crypto
2024-01-15 20:44:22 +02:00
799aadc9bc
Rewrite TestAddressGenerator as a subclass of TestPartialRun,
...
edit docstrings and add more checks. Closes : #1895
2024-01-15 20:44:21 +02:00
d427c27e7e
Started a test case for address generator
2024-01-15 20:43:51 +02:00
c5ced60d5d
Move most of the logic of TestCore.test_udp() into the TestNetwork
2023-12-20 04:26:55 +02:00
606b6d7d08
Explicitly enable UDP in TestNetwork adding Announcer to the expected threads
2023-12-20 03:02:42 +02:00
0cb80801b1
Resolve pylint warnings in partial and test_api_thread - mostly suppress
2023-12-04 01:14:58 +02:00
7c153c0eb8
Mock network.stats for python3 in tests.partial
2023-12-02 00:46:35 +02:00
2501212a82
Fix py3 incompatibilities in api:
...
- bytes in BMXMLRPCRequestHandler
(copied relevant lines from xmlrpc.server once again),
- used @six.add_metaclass for the metaclass and six.iteritems()
Closes : #1900
2023-12-02 00:46:35 +02:00
1b7a642d6a
Rewrite TestAPIThread as subclass of TestPartialRun
2023-12-02 00:45:55 +02:00
2c2a41d105
Add an obvious test for the 'statusBar' command
...
and remove some junk introduced in 9a194f0
.
2023-11-29 04:26:41 +02:00
a16a0cea5c
Rewrite imports in api for python3 and cut out those looking too tricky
2023-11-29 04:26:41 +02:00
81e6de1895
Started a standalone API test case
2023-11-29 04:26:05 +02:00
e8af6201e1
Fix the test for proofofwork.LogOutput()
2023-11-28 16:01:31 +02:00
b66dfcaebb
Cast time as int before assembling addr message
2023-11-25 17:18:42 +02:00
0c07bb6257
Move all the network constants into the protocol, define also magic.
...
Closes : #1788 .
2023-11-25 17:18:42 +02:00
b99670430f
Emphasize more magic imports in the network package
2023-11-25 17:18:42 +02:00
f6adb46ce6
The command arg of protocol.CreatePacket() is of type bytes
2023-11-25 17:18:42 +02:00
305d5d716c
Add a test for protocol.assembleAddrMessage()
2023-11-25 17:18:42 +02:00
7f376b0203
Move the contents of network.assemble to protocol
2023-11-25 17:18:11 +02:00
0f8fdb4b0b
Remove MailboxStorage TODO
2023-11-21 13:29:08 +02:00
c34b827f0f
Format storage.filesystem a bit
2023-11-01 13:38:48 +02:00
a629c15f7d
Fix appending in storage.filesystem for python3
2023-11-01 13:38:48 +02:00
8af1a13e10
Simplify storage abstract base definition
2023-11-01 13:38:48 +02:00
81f574c618
MutableMapping finally moved to collections.abc in py310
2023-11-01 13:38:48 +02:00
e1592a4260
Use dotted imports in the storage package to run on python3
2023-11-01 13:38:48 +02:00
9e9cffab33
Started a test case for inventory, so far using a filesystem backend
2023-11-01 13:38:48 +02:00
12118606ec
Separate creating the Inventory instance from singleton
2023-11-01 13:38:48 +02:00
47d6fb1cbc
Use internal link to doc in docstring of isProofOfWorkSufficient()
2023-10-31 02:41:10 +02:00
9187e0c52d
Forgotten pylint comment for os._exit
2023-10-20 03:31:51 +03:00
d03aa7c412
Add a timeout for sql_ready waiting, exit from object processor if reached
2023-10-19 16:23:46 +03:00
e4488ba370
Move loading cryptors into objectProcessor init.
2023-10-19 16:23:15 +03:00
8e46aecfb0
Fix closing inbound connections if sendoutgoingconnections is False
2023-09-18 15:42:26 +03:00
8a1835e3ad
Api fix HandleDisseminatePreEncryptedMsg
...
- PoW target formula correction
- correctly decode expiration time / TTL, object type and destination
stream
2023-01-06 15:57:29 +08:00
3fb6adad9b
Add Subscription and update test case of payment screen
2022-12-26 18:54:42 +05:30
255cffd061
Add Chat screen
2022-12-22 20:57:23 +05:30
7ee2217c4e
Fixed Create_random_address_generator kivy test
2022-12-05 21:04:44 +05:30
346b1a4084
Fixing navbar in addressbook
2022-12-05 11:46:50 +05:30
2d327352e2
In test cases assertEqual replaced with assertExist
2022-11-29 22:20:07 +05:30
d17eb6aeb9
Add test case for file manager opening and closing
2022-11-28 12:39:54 +05:30
9fa6b2ec2f
Refactor Kivy payment test case
2022-11-25 18:45:14 +05:30
39a5c9c92f
Add test case for myaddress, showing QR code and Send message from send button
2022-11-24 13:10:34 +05:30
54e7687f59
Add show QR-code in myaddress detail screen
2022-11-24 12:26:59 +05:30
364a9e814e
Add addressbook screen import and id/sc name
2022-11-23 13:08:19 +05:30
31534f7bbb
Add draft screen, helper widgets and Test
2022-11-23 12:03:38 +05:30
3b23977cbf
Rename btn to composer_dropwdown
2022-11-23 11:51:16 +05:30
929d9af945
Refactor mpybit and add msg_composer dropdown
2022-11-23 11:51:16 +05:30
76d6e4009b
Add back press in mpybit
2022-11-22 19:48:00 +05:30
5e2dcd70af
Fix docstrings in the api module
2022-11-22 12:41:21 +02:00
2785e56fab
Add more timeout in kivy setting screen test case
2022-11-21 12:41:55 +05:30
22156aae97
Add myaddress detail popup
2022-11-21 12:41:54 +05:30
50a781ad05
Text replacement on login screen
2022-11-21 12:10:11 +05:30
5964444b58
Run in Portable mode checkbox removed from settings.kv
2022-11-18 15:19:40 +05:30
e386b8dd43
Refactored allmail screen and removed unused code
2022-11-18 12:31:21 +05:30
188ded2231
Separate method
2022-11-18 12:31:20 +05:30
90862ea49e
Add and refactor kivy Allmail Screen
2022-11-18 12:31:20 +05:30
67b6fd4178
Update id sc3 to ic_create and sc4 to id_sent
2022-11-16 19:31:10 +05:30
6b40568d33
Fix kivy setting screen test case and added sleep in create random screen test case
2022-11-16 13:44:01 +05:30
60d2b392c5
Handle also AttributeError in desktop_xdg
2022-11-16 05:28:04 +02:00
fcb4cc41f3
Addes load sent list for send messages
2022-11-15 18:37:56 +05:30
38c283ba25
Add test cases for network screen
2022-11-15 17:34:45 +05:30
1f9defbdf8
Fix kivy payment screen test case
2022-11-15 16:11:01 +05:30
b3627ff5a6
Update kivy network test
2022-11-15 12:33:15 +05:30
346d157b5c
Refactor test create_random_address
2022-11-15 12:04:51 +05:30
c80529eb9e
Suppress pylint protected-access in test_ecc
2022-11-15 03:55:09 +02:00
df235f6c20
Rewrite highlevelcrypto.makeCryptor() to reuse pyelliptic.ECC._set_keys()
2022-11-15 03:19:16 +02:00
d751fb9081
ctypes.c_size_t in argtypes of EVP_DigestUpdate and HMAC
2022-11-15 03:19:16 +02:00
99fda8c84f
Linting for pyelliptic.ecc: edit doc example for python3 and PEP8,
...
remove redundant parentheses, reuse Cipher.gen_IV(),
fix misspelled ECDH and a wrong docstring for .get_curve().
2022-11-15 03:19:15 +02:00
ce199a24dc
Added more tests for pyelliptic.ECC
...
including parts of the encryption process, described in the Specification
with samples. Appended TestECC to builtin tests.
2022-11-15 03:19:15 +02:00
cdd73f9ac0
Move freeing pointers in highlevelcrypto.pointMult() to finally branch
...
like it's done in pyelliptic.
2022-11-15 03:19:15 +02:00
0fc5cd5927
Started a dummy test for random keys in pyelliptic.ECC()
2022-11-15 03:19:15 +02:00
fe7f8f6c95
OpenSSL improve memory handling
...
- replace void * with BIGNUM * where applicable
- fixes #1622
- replace 0 with None when using a NULL pointer as parameter
- maybe needs more work in how the data is accessed
- EC_POINT struct is now defined but isn't used yet
Closes : #1707
2022-11-15 03:18:41 +02:00
beadae84f0
Addes load sent list for send messages
2022-11-10 20:15:05 +05:30
80d4a460ea
Added application closing Popup
2022-11-10 16:40:42 +05:30
3457c0d84b
Added filemanager and image reset icon
2022-11-10 14:27:38 +05:30
c32f5cbcde
Add mock helper_startup
2022-11-10 12:47:09 +05:30
a5a56fe7f1
Fixing kivy test data
2022-11-09 13:44:38 +05:30
52d272065b
Fixed Side Navbar
2022-11-09 12:49:23 +05:30
98ad4abc2f
Added set_common_header in mpybit
2022-11-09 11:37:23 +05:30
7e5e30d125
Disable oniononly checkbox in Settings dialog if have no onion v3 nodes
2022-11-08 13:58:33 +02:00
14340540ae
Simplify MyForm.setStatusIcon()
2022-11-08 13:58:33 +02:00
b16105f254
Add a statusbar alert about onionservicesonly setting
...
and schedule MyForm.setStatusIcon() 30 sec after it is shown
2022-11-08 13:57:36 +02:00
813492291816
e6ecaa5e7d
Add API endpoint to return inbound and outbound connections
2022-11-05 02:26:02 -04:00
eebbcf79d1
Update Inbox screen
2022-11-03 12:16:35 +05:30
0f53c1e03c
Add Trash Screen
2022-11-02 12:02:22 +05:30
1b9ff22abb
Add python3 compatibility variable
2022-11-01 19:28:38 +05:30
c687c232b8
Handle xdg.Exceptions.ParsingError in desktop_xdg plugin ( fixes : #2089 )
2022-10-31 12:17:54 +02:00
1189628ed6
Add kivy Sent screen
2022-10-31 13:00:04 +05:30
60812ce892
Add inbox screen and fix test_create_address xpaths
2022-10-31 12:07:24 +05:30
22aec0159b
Update variable association to selected_address
2022-10-27 17:00:22 +05:30
ccb0796351
Change tab stops in New address dialog
2022-10-27 12:23:20 +03:00