Commit Graph

1318 Commits

Author SHA1 Message Date
97647f23a6 Refactor header generation
Modify generateFullAckMessage to use shared.CreatePacket
2014-05-22 16:33:42 +00:00
1f75047223 Refactor generation of packet headers 2014-05-22 16:21:20 +00:00
0f9625aac7 Refactor packet header extraction and generation
Demote payloadLength from class instance variable to processData local variable as no other function was using it
Improve processData:
 -Utilise shared.Header
 -Use a memoryview to reduce memory overhead
 -Clean up variables before a recursive call
 -Strip null bytes from command
Refactor sendData
Various functions:
 -Use shared.CreatePacket to generate packets
Fix typo in _checkIPv4Address
2014-05-22 15:57:48 +00:00
ccfbe8da47 Refactor handling of packet headers
Refactored ackDataHasAVaildHeader:
 -shared.Header is used as necessary
 -avoided slicing wherever possible
 -remove trailing null characters when comparing command strings
 -don't calculate the checksum of a large payload
2014-05-22 13:08:30 +00:00
947f7655ab Refactor generation of packet headers
Added global variable Header - a compiled Struct to pack/unpack headers so as to avoid repeatedly compiling the same format string
Add a new method CreatePacket to simply and efficiently construct a packet that is ready to be sent
Modify assembleVersionMessage to use CreatePacket
2014-05-22 12:30:51 +00:00
9b40838f25 Use pointMult instead of arithmetic.privtopub
pointMult is faster than the pure python arithmetic.privtopub

Additionally in makeCryptor the call to a.privtopub could have just simply be changed to call the local privToPub but then privkey would have been dehexified twice (once in makeCryptor, then again in privToPub) and privToPub would have hexified its result only for makeCryptor to immediately dehexify it. This sort of unnecessary hexifying/dehexifying seems to occur throughout PyBitmessage.
2014-05-21 11:08:15 +00:00
b1261a6c0e Move pointMult to highlevelcrypto
Update pointMult calls to highlevelcrypto.pointMult
2014-05-21 10:15:07 +00:00
19deff7c75 Move pointMult to highlevelcrypto
Remove pointMult from class_addressGenerator
Update pointMult calls to highlevelcrypto.pointMult
2014-05-21 10:06:20 +00:00
ecf78801bf Move pointMult function to highlevelcrypto
Copy pointMult function from to
2014-05-21 09:59:08 +00:00
Jonathan Warren
cc21d629c9 Merge pull request #654 from bashrc/master
Exclude debian directory from orig.tar.gz #651
2014-05-19 16:06:45 -04:00
Jonathan Warren
033370472e Merge pull request #670 from Atheros1/master
Dutch translation
2014-05-19 16:04:32 -04:00
Jonathan Warren
b97a65391c added dutch translation option to settings dialog 2014-05-19 16:01:46 -04:00
Jonathan Warren
8ed4ba8670 Merge branch 'master' of git:// into lazlolazlolazlo-master 2014-05-19 14:04:17 -04:00
Jonathan Warren
84bd40bd57 Merge pull request #642 from fyahfox/master
Update bitmessage_de.ts
2014-04-30 18:51:34 -04:00
Jonathan Warren
486508dab2 Merge pull request #665 from Atheros1/master
Japanese translation
2014-04-30 18:50:50 -04:00
Jonathan Warren
a49ab786bb resolve merge conflict 2014-04-30 18:48:00 -04:00
Jonathan Warren
38d7db24ad Merge pull request #639 from bpeel/wip/trusted-peer
Add a 'trustedpeer' option to keys.dat
2014-04-30 17:42:28 -04:00
Jonathan Warren
e2e79362af Merge pull request #638 from IZARTeam/master
Add zh_cn translations in
2014-04-30 16:51:58 -04:00
Jonathan Warren
c1af9e8cef Merge pull request #634 from coolbeans7/master
Various fixes related to typos
2014-04-30 16:50:57 -04:00
Jonathan Warren
a94d995f76 Merge pull request #633 from domob1812/email-quoting
Optionally reply below quote (email style)
2014-04-30 16:49:06 -04:00
Jonathan Warren
ac11a4ca56 Merge pull request #664 from Atheros1/master
Fix #662 - 'PyBitmessage does not wait for verack'
2014-04-30 15:55:15 -04:00
Jonathan Warren
22934441dc Fix #662 - 'PyBitmessage does not wait for verack' 2014-04-30 15:39:25 -04:00
Jonathan Warren
e138320801 Merge pull request #663 from Atheros1/master
Fixed minor label problem during init
2014-04-30 12:45:42 -04:00
Jonathan Warren
12d131f7f2 Fixed minor label problem during init 2014-04-30 12:44:16 -04:00
Jonathan Warren
0ca27f73f3 Merge pull request #661 from Bitmessage/bpeel-ipv6
Bpeel ipv6
2014-04-27 18:10:08 -04:00
Jonathan Warren
114ba4e23a slightly modify IPv6 modifications so that IPv4-only hosts properly handle v6 IPs 2014-04-27 18:05:43 -04:00
Daniel Kraft
eef2176bfa Merge branch 'master' into email-quoting 2014-04-06 15:46:05 +02:00
Neil Roberts
7da6ea958f Add support for IPv6
It will now listen on an IPv6 socket if possible or fall back to IPv4
if that doesn't work. It will no longer filter out all IPv6 addresses
and instead it will only filter out those that point to the local

It looks like the DNS bootstrapping should just automatically work
because getaddrinfo already returns IPv6 addresses from the AAAA

In order to convert from the ASCII representation of IPv6 addresses
and back we need inet_ntop and inet_pton. Python 2 doesn't currently
provide these for Windows so instead this patch provides a hot patch
to the socket module which wraps WSAStringToAddress and
WSAAddressToString using ctypes.
2014-03-12 01:48:48 +00:00
Bob Mottram
f0c76f003a Changelog must be in chronological order 2014-03-06 21:12:26 +00:00
Bob Mottram
6bfc563f75 Fix 'bogus' dates which otherwise prevent package creation 2014-03-06 09:21:06 +00:00
Bob Mottram
758120cc2f Exclude debian directory from orig.tar.gz #651 2014-03-05 20:36:13 +00:00
Jonathan Warren
700e3d1f17 Merge pull request #629 from yurivict/translations
Corrected Russian translations (e->ё, commas, spelling, formal style)
2014-03-04 18:03:40 -05:00
Lazlo Westerhof
7f01887365 Add dutch translation files 2014-02-27 13:17:21 +01:00
272364ce7b Update bitmessage_de.ts
added some translations
2014-02-09 14:22:28 +01:00
928d9501cc Update bitmessage_de.ts 2014-02-08 18:41:33 +01:00
ff36037df9 Update bitmessage_de.ts
2014-02-08 18:40:02 +01:00
fd6fd0719f Update bitmessage_de.ts
typo line 1296
2014-02-08 17:46:17 +01:00
cfb1c079c5 add language option 2014-02-08 12:02:19 +09:00
61d4e0889f complete translation to japanese 2014-02-08 11:35:51 +09:00
a34442d637 add more translation. 2014-02-07 00:47:04 +09:00
Neil Roberts
03263156de Add a 'trustedpeer' option to keys.dat
If this option is specified in keys.dat then Bitmessage will connect
to the host specified there instead of connecting to the hosts in the
list of known nodes. It will also stop listening for incoming
connections and the timing attack mitigation will be disabled.

The expected use case is for example where a user is running a daemon
on a dedicated machine in their local network and they occasionally
want to check for messages using a second instance of the client on
their laptop. In that case it would be much faster to catch up with
the messages by directly downloading from the dedicated machine over
the LAN. There is no need to connect to multiple peers or to do the
timing attack mitigation because the daemon is trusted.

The host is specified as hostname:port. Eg, ‘’.
2014-02-06 13:16:07 +00:00
1204442fcd Add zh_cn translations in
And fix some mistakes in Chinese translation
2014-02-06 03:31:51 +08:00
Jonathan Warren
44f31d7bf9 Merge pull request #637 from Atheros1/master
Ignore, and don't save to memory, messages larger than 20MB (temporary)
2014-02-04 23:47:59 -08:00
Jonathan Warren
0de659a04a Ignore, and don't save to memory, messages larger than 20MB (temporary) 2014-02-05 02:45:10 -05:00
e63276c240 add japanese transration. 2014-02-01 17:15:50 +09:00
Daniel Kraft
6326147d6f Make reply below quote opt-in.
Add a new preference for 'reply below quote' and only use the new
quoting style if it is set.
2014-01-28 20:57:01 +01:00
Daniel Kraft
5c1e1206ef Use patch for email-like quoting with '>' chars.
Apply the patch from
for email-like "reply below text" with '>' quoting.  The patch is
slightly modified compared to the referenced pull request.
2014-01-28 20:38:54 +01:00
eb2a82295a Corrected Russian translation. 2014-01-24 20:14:51 -08:00
205127aa05 Merge branch 'master' of into translations 2014-01-24 19:59:35 -08:00
e133b90769 Update
A bit more sentence casing.
2014-01-24 08:22:01 -08:00