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
3ed84a5863
Start adding hashes with double SHA512
2024-04-13 03:17:39 +03:00
2a93b04332
Fix api.HandleDisseminatePreEncryptedMsg() for python3
2024-04-05 00:38:30 +03:00
1794384f01
Use decodeObjectParameters() in disseminatePreEncryptedMsg API command handler
2024-04-05 00:38:29 +03: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
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
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
5e2dcd70af
Fix docstrings in the api module
2022-11-22 12:41:21 +02:00
813492291816
e6ecaa5e7d
Add API endpoint to return inbound and outbound connections
2022-11-05 02:26:02 -04:00
20ce69b337
Add enableAddress API command and a check for sending from disabled address
2022-07-26 03:28:05 +03:00
e12e9c4155
Add exception type in HandleSendMessage and HandleSendBroadcast
...
and API error 14 in HandleSendBroadcast.
2022-07-26 03:28:05 +03:00
93c283a467
Place obvious bandit nosec comments
2022-05-02 18:00:55 +03:00
a5773999fe
Refactor BMConfigParser as a Module variable
2022-02-15 17:12:43 +05:30
Marius Kjærstad
584ea0f6a0
Changed copyright year to 2022
2022-01-17 18:11:23 +01:00
ef2d005957
Fix #1898
2021-12-11 16:32:54 +02:00
5771f21cfb
Added undeleteMessage function in helper_inbox & respective method in api.py and separated inbox & trash testcases
2021-12-02 19:11:38 +05:30
56ec5b8a03
Created testmode decorator & routed command decorator through it
2021-12-02 19:11:36 +05:30
21cb4e516d
Added testmode check for HandleclearUISignalQueue & HandleGetStatusBar functions, replaced sample_inbox_msg_receiver_address by sample_deterministic_addr4
2021-12-02 19:11:36 +05:30
9a194f0bae
Added statusBar, getAllInboxMessages, getAllInboxMessageIds, getInboxMessageById, getInboxMessagesByReceiver, trashMessage, trashInboxMessage & addSubscription, methods testcases & updated related functions
2021-12-02 19:11:35 +05:30
7702b33ac2
Updated code quality replaced unicode by decode function in api.py
2021-09-01 13:31:35 +05:30
0becc5bdeb
Updated code quality binary operator based changes in api.py
2021-08-11 21:26:15 +05:30
813492291816
a0e1c0041f
Add missing TTL to API sendMessage
2021-01-07 19:51:12 -05:00
navjot
4681d37377
validate address in insert method and improve test cases
2020-11-21 13:53:10 +05:30
navjot
61f7f32dfc
removed unused code and return ackdata from inset method insted of msgid
2020-11-21 13:53:10 +05:30
navjot
beaece254c
omitted unused code and optimized it
2020-11-21 13:53:10 +05:30
navjot
89254064f6
fixed default variables in insert method
2020-11-21 13:53:10 +05:30
navjot
a9e9f25b5d
change helper_sent.insert methods
2020-11-21 13:53:10 +05:30
813492291816
601158f6fb
add pendingDownload to return of API clientStatus
2020-11-21 01:00:11 +00:00
6b65113bb4
Added missing msgid in HandleGetInboxMessageById() query
2020-10-04 17:24:45 +03:00
380530c839
Experimental APIError codes table
2020-09-14 13:11:43 +03:00
ef5593b3d5
Formatted lines for PEP8, handled pylint warnings, added docstrings
2020-09-14 13:11:43 +03:00
3a8e842e60
Use encodingType arg in sendMessage and sendBroadcast API commands
2020-09-14 13:11:43 +03:00
5b07d2de30
httplib status codes constants in response
2020-09-14 13:11:43 +03:00
efff8f95ba
Prefix based command filter
2020-09-14 13:11:42 +03:00
06033ed96e
Fixed response for bad username or password and content-type header
...
(closes #244 )
2020-09-14 13:11:42 +03:00
726986c1eb
Implemented JSON-RPC apivariant
2020-09-14 13:11:42 +03:00
6a089e0f88
Decoupled SimpleXMLRPCRequestHandler subclass
...
and added simple introspection
2020-09-14 13:11:42 +03:00
f4bf3bac2a
Used defusedxml to protect against XML vulnerabilities
2020-09-14 13:11:42 +03:00
2142888cbe
Inherited APIError from xmlrpclib.Fault.
...
From now on any errors are raised.
2020-09-14 13:11:42 +03:00
25abf66f1d
Reused _verifyAddress() in HandleDecodeAddress()
2020-09-14 13:11:41 +03:00
5925781b9a
Proper message for APIError 0
2020-09-14 13:11:41 +03:00
7cafe402be
Methods to form a dictionary for inbox and sent messages
2020-09-14 13:11:41 +03:00
45b0659e4c
Refactoring the API with metaclass and decorator
2020-09-14 13:11:35 +03:00
185ad66ea5
Moved most of variables from shared elsewhere (mostly to state)
2020-05-05 17:27:38 +03:00
lakshyacis
6f35da4096
Imported packages sequencing and formatting
2020-01-30 12:14:40 +05:30
lakshyacis
3211fca953
formatting and shorten line length
2020-01-22 15:55:26 +05:30