Commit Graph

407 Commits

Author SHA1 Message Date
Arinerron
e820cc65ac
Fix bug involving removing enabled plugins 2018-04-22 21:25:54 -07:00
Kevin Froman
3e8d76e246 fixed exception caused by probably check for missing block 2018-04-22 23:17:16 -05:00
Arinerron
0dc6a0b6c5
Refactor code 2018-04-22 20:49:53 -07:00
Arinerron
a5dbf73df4
Simple fix for GUI plugin 2018-04-22 20:45:25 -07:00
Arinerron
36d9ebd4f1 Merge branch 'crypto' of https://github.com/beardog108/Onionr into crypto 2018-04-22 20:42:50 -07:00
Arinerron
654703d902
Start working on plugin manager 2018-04-22 20:42:37 -07:00
Kevin Froman
8300cd1c91
fixed messed up gethostname() 2018-04-22 22:20:52 -05:00
Kevin Froman
62737ea2c1
added bootstrap node and removed debug message 2018-04-22 22:15:20 -05:00
Kevin Froman
583480629a
hopefully working again, hopefully less block validation issues 2018-04-22 21:58:24 -05:00
Kevin Froman
c807056ef2
convert data to bytes if it isnt 2018-04-22 21:24:34 -05:00
Kevin Froman
7578ac874b
now only show block contents debug if txt 2018-04-22 21:19:57 -05:00
Kevin Froman
8853926287
bumped api version and removed encode on setdata since it is always bytes now 2018-04-22 21:16:11 -05:00
Kevin Froman
ae79b7ee3a
fixed stupid mistake 2018-04-22 21:13:55 -05:00
Kevin Froman
d41f86a27a
what 2018-04-22 21:10:09 -05:00
Kevin Froman
7199b0e5da
now check base64 after bool check 2018-04-22 20:59:44 -05:00
Kevin Froman
c562fabbbd
removed bytes conversion on downloadblock data 2018-04-22 20:56:20 -05:00
Kevin Froman
23d092fb94
added binascii import 2018-04-22 20:46:22 -05:00
Kevin Froman
89f1b11dac
started work on base64 transporting 2018-04-22 20:43:17 -05:00
Kevin Froman
4ff6baa279
fixed messed up message for missing bootstrap file 2018-04-22 18:38:32 -05:00
Kevin Froman
c9cfeac303
added self check, bootstrap node file 2018-04-22 18:36:09 -05:00
Kevin Froman
7706d4e04c
added self check, bootstrap node file 2018-04-22 18:35:00 -05:00
Kevin
0ce3c7d940 now kill tor more often when shutting down, use own tor data directory, and check for api crash to stop daemon 2018-04-21 20:53:12 -05:00
Arinerron
c0e08eae79
Improve plugin error handling 2018-04-21 17:37:20 -07:00
Arinerron
9cf07355ce
Convert gui.py into a default plugin 2018-04-21 17:09:48 -07:00
Arinerron
bd0a175dfc
Improve first-run and add default plugins 2018-04-20 22:04:03 -07:00
Arinerron
098abb8e55
Improve support for plugins 2018-04-20 20:10:50 -07:00
Arinerron
8d8f167d7f
Fix tests, remove debug code 2018-04-20 18:26:46 -07:00
20esaua
2126138428 Add in PluginAPI (#7)
* Modify soft resetting

Made it more like hard resetting (output-wise).

* Refactor timedHmac.py

* Update onionrplugins.py

Remove test code

* Create onionrpluginapi.py

* Update onionrevents.py

* Update onionrpluginapi.py

* Update onionrevents.py

* Update onionr.py

* Add onionr object to events

* Update onionr.py
2018-04-21 01:20:26 +00:00
Arinerron
034410a6e8
Remove test plugin 2018-04-18 21:46:29 -07:00
Arinerron
749bbe5b1f
Update gitignore 2018-04-18 21:32:59 -07:00
Arinerron
829af91c82
Add onionr/data-encrypted.dat to .gitignore 2018-04-18 21:24:06 -07:00
Arinerron
981b7ca4a6
Fix if thing 2018-04-18 21:23:31 -07:00
Arinerron
6883133cfb
Fix one bug, create another 2018-04-18 20:25:33 -07:00
Arinerron
99edaa1e6f
Fix pm bug 2018-04-18 20:20:52 -07:00
Kevin Froman
8d342df5e6 Merge branch 'crypto' of github.com:beardog108/onionr into crypto 2018-04-18 21:56:38 -05:00
Kevin Froman
8024d0e354
added introduce command 2018-04-18 21:56:25 -05:00
Arinerron
a056c7a7f4 Merge branch 'crypto' of https://github.com/beardog108/Onionr into crypto 2018-04-18 19:25:26 -07:00
Arinerron
620f176826
use sys.stdin.readline() rather than input() 2018-04-18 19:25:16 -07:00
Kevin Froman
d8d29b7c28
improved some debug info and REMOVED STRAY INPUT() 2018-04-18 21:19:38 -05:00
Kevin Froman
c356b68987
improved some debug info and REMOVED STRAY INPUT() 2018-04-18 21:18:38 -05:00
Arinerron
5dd0437f14 Merge branch 'crypto' of https://github.com/beardog108/Onionr into crypto 2018-04-18 19:16:16 -07:00
Arinerron
1332e9ee9e
Add some error handling 2018-04-18 19:16:10 -07:00
Kevin Froman
417b2d7a79 Merge branch 'crypto' of github.com:beardog108/onionr into crypto 2018-04-18 21:03:59 -05:00
Kevin Froman
812381b1d8
added check for type error on data check 2018-04-18 21:03:44 -05:00
Arinerron
ded179bcad
Add error logging 2018-04-18 18:57:37 -07:00
Arinerron
86a2c0d6d0
Remove extra padding 2018-04-18 18:50:53 -07:00
Arinerron
7369b63614
Update logging 2018-04-18 18:47:35 -07:00
Kevin Froman
77f811c455
added intruction for nodes 2018-04-18 20:17:47 -05:00
Kevin Froman
edce30ea20
added timestamp to logger & removed debug prints 2018-04-18 12:50:20 -05:00
Kevin Froman
97baec453c
fixed gui status not appearing fast enough 2018-04-18 02:17:42 -05:00
Kevin Froman
b4eb1392ea
fixed gui status not appearing fast enough 2018-04-18 02:17:04 -05:00
Kevin Froman
d5f96e4cb8
hopefulyl fixed padding error again 2018-04-18 02:12:36 -05:00
Kevin Froman
9eb8a16572
added check for gui support 2018-04-18 01:55:44 -05:00
Kevin Froman
0cf4c97597
fixed padding issue (hopefully), can now decrypt PMs, other improvements 2018-04-17 22:43:33 -05:00
Kevin Froman
a3aa8e3ae6
work on pm and gui improvements & some bug fixes 2018-04-15 21:22:19 -05:00
Kevin Froman
3a2efce637
work on encryption 2018-04-15 03:46:50 -05:00
Kevin Froman
2071def07b
fixed pubkey exchange hopefully 2018-04-03 20:54:49 -05:00
Kevin Froman
9ecd87595b
work on pm and fixed broken pex when none 2018-04-03 19:45:13 -05:00
Kevin Froman
87a9ecf426
work on pm and fixed broken pex when none 2018-04-03 19:42:20 -05:00
Kevin Froman
8d261b03dc
work on pm and fixed broken pex when none 2018-04-03 19:34:15 -05:00
Kevin Froman
a611643526
pex/kex hopefully now working 2018-04-03 16:47:48 -05:00
Kevin Froman
fdceb4be90
added debug msg for adding peers 2018-04-03 15:32:01 -05:00
Kevin Froman
28fd4f4858
now share own pubkey 2018-04-03 14:39:58 -05:00
Kevin Froman
e061e516ee
increased pex timer 2018-04-03 13:20:27 -05:00
Kevin Froman
6dafcffd5a
added cryptotests 2018-04-02 02:21:58 -05:00
Kevin Froman
8022781a8f
lot of work on OnionrCrypto
updated logo
fixed broken peerinfo functions in core
removed gnupg from travis installation
2018-04-01 19:33:09 -05:00
Kevin Froman
0b192ffb9b
do not request offline peers too often and updated logo 2018-04-01 00:46:34 -05:00
Kevin Froman
24540abe6b
finished pub encrypt function 2018-03-16 15:38:33 -05:00
Kevin Froman
cb3015652a
peer/key exchange work (mostly done) 2018-03-16 10:35:37 -05:00
Kevin Froman
9229fd9984
disabled btc 2018-03-03 20:28:17 -06:00
Arinerron
0fd9c3f6ab
Disable bitcoin node unit test 2018-03-03 14:22:12 -08:00
Arinerron
ce5bb6554d Merge branch 'crypto' of https://github.com/beardog108/onionr into crypto 2018-03-03 14:19:04 -08:00
Arinerron
ee59b12238
Add more unit tests 2018-03-03 14:18:57 -08:00
Kevin Froman
3813ee56ef
fixed issues from plugin addition 2018-03-03 03:18:53 -06:00
Arinerron
cc4687021a
Migrate from old dev-enabled to devmode 2018-03-02 23:37:46 -08:00
Arinerron
c2db59ba8b
Minor bug fixes, and more refactoring 2018-03-02 23:35:13 -08:00
Arinerron
d5daeae532
Refactor code 2018-03-02 23:26:02 -08:00
Arinerron
0cefcec11a
Add unit test 2018-03-02 23:10:27 -08:00
Arinerron
b04ea55e48
Add support for programmatic command creation 2018-03-02 23:00:43 -08:00
Arinerron
ab17e0d198
Add plugin support 2018-03-02 20:19:01 -08:00
Kevin Froman
5641651c85
added functions to verify and sign with ed25519 2018-03-01 13:59:07 -06:00
Kevin Froman
17d1b9e340
work on pex 2018-03-01 03:20:57 -06:00
Kevin Froman
15aa395946
work on crypto 2018-02-28 03:06:02 -06:00
Kevin Froman
5564d540cb
renamed pow to onionrproofs since pow is a taken keyword 2018-02-27 19:44:00 -06:00
Kevin Froman
32b8d9c1a7
fixed broken test 2018-02-27 18:18:48 -06:00
Kevin Froman
fc5d702706
bug fixes 2018-02-27 18:00:37 -06:00
Kevin Froman
d0593ef300
added address add command and test 2018-02-27 15:23:49 -06:00
Kevin Froman
3033de1d9e
communicator now starts tor node 2018-02-27 03:33:26 -06:00
Kevin Froman
cf3af5b8c6
work on pow 2018-02-25 20:30:43 -06:00
Kevin Froman
152f9e7dee
improved tor support for bitcoin 2018-02-24 15:43:10 -06:00
Kevin Froman
5674cd2137 Merge branch 'master' into crypto 2018-02-24 03:38:10 -06:00
Kevin Froman
0e0be52980
added bitcoin block tool 2018-02-24 03:37:52 -06:00
Arinerron
39c81ae7d1
Add log configuration 2018-02-22 18:53:49 -08:00
Arinerron
c87bf15146
Add config command 2018-02-22 18:25:05 -08:00
Arinerron
1a1317a7b6
Refactor configuration management code 2018-02-22 17:58:36 -08:00
Kevin Froman
b65c6305c5
added pow module (not used yet) 2018-02-22 16:55:42 -06:00
Kevin Froman
155791be03
test tor version, use address db for connections, create address db if it doesnt exist, more 2018-02-22 03:33:30 -06:00
Kevin Froman
af24f16538
fix merge conflict 2018-02-22 02:42:55 -06:00
Kevin Froman
f39ab33517
added hash validation test and cleaned up output 2018-02-22 02:41:05 -06:00
Arinerron
8acef01b68
Add help menu, refactor code 2018-02-21 23:24:25 -08:00
Arinerron
005273b52c Merge branch 'crypto' of https://github.com/beardog108/onionr into crypto 2018-02-21 22:42:04 -08:00
Arinerron
b0039f534c
Changes, forgot 2018-02-21 22:42:02 -08:00
Kevin Froman
15400432b1
fixed pubkey validation not working 2018-02-22 00:08:04 -06:00
Kevin Froman
882f2e7020
fixed crypto object created before directories are generated 2018-02-22 00:02:29 -06:00
Kevin Froman
38bfee5344
work on seperating pubkey from tor/i2p 2018-02-21 03:32:31 -06:00
Kevin Froman
586e9230cd
fixed message spam, rewrote draft, work on crypto 2018-02-20 20:44:56 -06:00
Kevin Froman
895b1919fd removed PGP 2018-02-15 23:31:30 -05:00
Kevin Froman
297cac81ae
work on peer encryption 2018-02-08 16:58:39 -06:00
Kevin Froman
a0dc95c291
work on peer private messages (& crypto) 2018-02-08 03:14:32 -06:00
Kevin Froman
4948712904
work on peer encryption 2018-02-07 03:04:58 -06:00
Kevin Froman
6ca70afb78
we now temporarily keep track of peer connectivity history, eventually we will use this to ignore unstable/slow/offline peers 2018-02-04 03:20:43 -06:00
Arinerron
c57bffcae8
Fix two bugs 2018-02-03 21:22:34 -08:00
Arinerron
62cad7a6ea
Code consistency updates
- Improved formatting
- Added comments
- URL encoded values in netcontroller.performGET
- Kept SQL statement case consistency
2018-02-03 19:44:29 -08:00
Arinerron
bdd1d9697b
Refactor argument handler FOR THE FIFTH TIME 2018-02-03 17:11:35 -08:00
Kevin Froman
2769673abd hopefully fixed block issues 2018-02-02 03:15:28 -06:00
Kevin Froman
38ad6559c3 gui can now send messages 2018-02-02 02:30:50 -06:00
Kevin Froman
70bc131aa6
work on gui, blocks now have identifiers, work on crypto 2018-02-01 23:39:55 -06:00
Kevin Froman
14d1fec3f3
started work on data encryption 2018-02-01 16:45:15 -06:00
Kevin Froman
40643358fc Merge branch 'process-blocks' of github.com:beardog108/onionr into process-blocks 2018-01-29 01:05:24 -06:00
Kevin Froman
dd9a54f7c6
added addpeer command and misc bug fixes 2018-01-29 01:05:02 -06:00
Arinerron
b3ea0e7b46
fix a few things 2018-01-28 22:01:36 -08:00
Kevin Froman
71bff27245 do not add block in addblock function if it already is added 2018-01-28 21:45:43 -06:00
Kevin Froman
e5a3a4650e
now display new block text if small in terminal 2018-01-28 21:00:12 -06:00
Kevin Froman
8c6a04f03d
moved length check in hash validation 2018-01-28 20:54:39 -06:00
Kevin Froman
1c3e886ba0
added hasBlock function 2018-01-28 20:52:48 -06:00
Kevin Froman
b4d61d3598
set dataSaved when it should have already been 2018-01-28 20:39:34 -06:00
Kevin Froman
aaecd0adaf
added timeout to performget 2018-01-28 20:30:31 -06:00
Kevin Froman
8b3a09f5af
do not claim hash is invalid when there was no hash 2018-01-28 20:20:24 -06:00
Kevin Froman
da80723686
do not claim hash is invalid when there was no hash 2018-01-28 20:19:30 -06:00
Kevin Froman
0ca84c9759
check for bytes hash type in setData 2018-01-28 20:14:46 -06:00
Kevin Froman
55aa889bd9
now update block datasaved stat when saved 2018-01-28 20:12:36 -06:00
Kevin Froman
8d41f9f3d5
now update block datasaved stat when saved 2018-01-28 20:08:28 -06:00
Kevin Froman
dc65254e0a
now update block datasaved stat when saved 2018-01-28 20:02:16 -06:00
Kevin Froman
7acb695acd
added hash validation warning for blocks 2018-01-28 16:45:22 -06:00
Kevin Froman
1b0d575575
fxied validateHash 2018-01-28 16:41:49 -06:00
Kevin Froman
c6ad487c79
fxied validateHash 2018-01-28 16:38:10 -06:00
Kevin Froman
d1faea2519
debugging blocks 2018-01-28 16:29:16 -06:00
Kevin Froman
7533fda399
debugging blocks 2018-01-28 16:26:34 -06:00
Kevin Froman
172e709c46
trim hash whitespace in validatehash 2018-01-28 16:21:51 -06:00
Kevin Froman
692de7a147
sigh 2018-01-28 16:15:41 -06:00
Kevin Froman
7f688e0696
added downloadBlock function 2018-01-28 16:14:19 -06:00
Kevin Froman
f4bb9ca093
fixed process blocks core call 2018-01-28 16:03:55 -06:00
Kevin Froman
cd82903db1
moved processblocks to communicator and fixed bool error in validatehash 2018-01-28 16:02:29 -06:00
Kevin Froman
63b4c88d06
moved processblocks to communicator and fixed bool error in validatehash 2018-01-28 15:59:13 -06:00
Arinerron
0d423aaefd
Change "error" to "fatal" and fix styling for fatal 2018-01-27 20:43:54 -08:00
Kevin Froman
2d41107372
fixed requirements.txt and unsaved block message 2018-01-27 20:29:45 -06:00
Kevin Froman
ac0838e678
properly save block list 2018-01-27 20:23:07 -06:00
Kevin Froman
963fab821b
fixed addToBlockDB and added selfInsert flag, addmessage command 2018-01-27 20:18:38 -06:00
Kevin Froman
da6729adc9
fixed core not appending new line to block list 2018-01-27 20:10:17 -06:00
Kevin Froman
7a3eaf63df
added invalid block debug message 2018-01-27 20:07:33 -06:00
Kevin Froman
59b4a887c7
properly close setpeerinfo db 2018-01-27 20:05:55 -06:00
Kevin Froman
df494a7906
added communicator hash sync debug messages 2018-01-27 20:03:44 -06:00
Kevin Froman
abcdf58b1f
fixed performget error type mismatch 2018-01-27 19:58:30 -06:00
Kevin Froman
2ed6475195
improved block syncing 2018-01-27 19:56:59 -06:00
Kevin Froman
897f18bbc2
improved block syncing 2018-01-27 19:53:24 -06:00
Kevin Froman
f3c1587d51 failed to get blocks message 2018-01-27 17:02:03 -06:00
Kevin Froman
db9ed46162 failed to get blocks message 2018-01-27 16:59:07 -06:00
Kevin Froman
5457e1fdb7
onionr now responds with data properly 2018-01-27 15:49:48 -06:00
Kevin Froman
50e6537e80
tor now exits properly on STOP command 2018-01-27 03:06:08 -06:00
Kevin Froman
4510dbfd82
tor now exits properly on STOP command 2018-01-27 02:43:36 -06:00
Kevin Froman
ead0741e03
fixed gpg generation bug and fixed issues relating to first run/setup 2018-01-26 21:42:20 -06:00
Kevin Froman
d22d945056
fixed wrong gnupg 2018-01-26 19:45:01 -06:00
Kevin Froman
e59ca3968c
updated gnupg version and removed CI check for gnupg 2018-01-26 19:35:18 -06:00
Kevin Froman
bf2290ab26
fixed incorrect logger import and fixed communicator not shutting down 2018-01-26 19:24:38 -06:00
Kevin Froman
1c8f8a6632 Merge remote-tracking branch 'origin/loggerdev' into mergeloggerdev 2018-01-26 19:17:22 -06:00
Kevin Froman
cb63941fc9
work on processing blocks 2018-01-26 19:16:15 -06:00
Kevin Froman
383c936e68
Delete hostname 2018-01-26 19:09:51 -06:00
Kevin Froman
192aee9dc2
Delete torrc 2018-01-26 19:09:38 -06:00
Kevin Froman
ff23a4dc6d
Delete host.txt 2018-01-26 19:09:29 -06:00
Kevin Froman
946d5fb25c
Update torrc 2018-01-26 19:07:47 -06:00
Kevin Froman
70351b0b5c
Update host.txt 2018-01-26 19:07:37 -06:00
Kevin Froman
2486b8ffcd
Update hostname 2018-01-26 19:04:02 -06:00
Arinerron
583c5290d4
Add input functions 2018-01-26 16:52:20 -08:00
Kevin Froman
64b14720c1
fixed broken dns rebinding mitigation and secured peer adding 2018-01-26 18:10:38 -06:00
Kevin Froman
c35242be1a
added id verification 2018-01-26 03:46:21 -06:00
Arinerron
197d47eb7d
Add logger 2018-01-25 23:22:48 -08:00
Kevin Froman
033290656a
work on exchanging data 2018-01-26 00:28:11 -06:00
Kevin Froman
67a84e2a19 added processBlocks function 2018-01-25 16:39:09 -06:00
Kevin Froman
6e8aaaf4b1
added pynacl import 2018-01-24 23:30:41 -06:00
Kevin Froman
4966925b14 added return false for errors on performget 2018-01-23 23:28:43 -06:00
Kevin Froman
b41e51937e fixed missing sys import 2018-01-21 22:39:19 -06:00
Kevin Froman
f46e7ea965
added 401 handler, work on storing/sending data 2018-01-21 20:49:11 -06:00
Kevin Froman
5af2b99135 added get data function, work on submitting/recieving data 2018-01-21 03:12:41 -06:00
Kevin Froman
b62f799b02
added block database creation and insertion 2018-01-20 23:49:16 -06:00
Kevin Froman
4d33005d16
communicator now uses one function 2018-01-20 19:02:56 -06:00
Kevin Froman
d0a93ef2de added check for travis in gpg homedir 2018-01-20 12:23:01 -06:00
Kevin Froman
b1c0567c98
fixed int bug in netcontroller and test 2018-01-20 12:06:25 -06:00
Kevin Froman
26c1983a61
hopefully fixed pgp test, added pgp export function 2018-01-20 11:59:44 -06:00
Kevin Froman
0042e2fe51
api now returns pgp keys 2018-01-20 03:22:07 -06:00
Kevin Froman
6a1a448eab
fixed pgp generation, work on onion 2018-01-20 01:23:09 -06:00
Kevin Froman
cb3de7056c emergency commit 2018-01-19 18:59:05 -06:00
Kevin Froman
d2d60fe6ce
netcontroller now gets the tor hs id 2018-01-19 15:28:34 -06:00
Kevin Froman
9d91e77ec5
work on net controller 2018-01-19 03:16:38 -06:00
Kevin Froman
388752c079
started work on controling and using hidden services 2018-01-18 17:25:10 -06:00
Kevin Froman
0394f1640a
added netcontroller.py file 2018-01-18 03:08:32 -06:00
Kevin Froman
b29e0f0c09
fixed host check spelling bug 2018-01-18 01:49:13 -06:00
Kevin Froman
19bab6a3c6
edited spec, added hmac generation function + test 2018-01-17 17:37:53 -06:00
Kevin Froman
45eb94d759
added bytesStored peer entry 2018-01-17 12:35:24 -06:00
Kevin Froman
ce921d211c
added function definitions & doc strings 2018-01-16 02:32:17 -06:00
Kevin Froman
c1217b1d44
use homedir instead of gnupghome argument 2018-01-15 15:21:32 -06:00
Kevin Froman
226bb1b3e2
added dev-enabled 2018-01-15 15:09:17 -06:00
Kevin Froman
4f04818c86
still learning tests i guess 2018-01-15 03:09:27 -06:00
Kevin Froman
6d6d60ff7a
fixed test again 2018-01-15 02:52:45 -06:00
Kevin Froman
6428d38916
fixed failing test 2018-01-15 02:44:14 -06:00
Kevin Froman
fa5a5d3414
changed test travis 2018-01-15 02:40:51 -06:00
Kevin Froman
8b4b69e99c
added linux run script 2018-01-15 02:03:13 -06:00
Kevin Froman
813e98a801
improved project structuring 2018-01-14 22:57:23 -06:00