diff --git a/README.md b/README.md index a40ebbfe..3f6f19c8 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ # About -Onionr ("Onion Relay") is a decentralized, peer-to-peer communication network, designed to be anonymous and resistant to (meta)data analysis, spam, and corruption. +Onionr ("Onion Relay") is a decentralized/distributed peer-to-peer communication network, designed to be anonymous and resistant to (meta)data analysis, spam, and corruption. Onionr stores data in independent packages referred to as 'blocks'. The blocks are synced to all other nodes in the network. Blocks and user IDs cannot be easily proven to have been created by a particular user. Even if there is enough evidence to believe that a specific user created a block, nodes still operate behind Tor or I2P and as such cannot be trivially unmasked. diff --git a/docs/usage/firststeps.md b/docs/usage/firststeps.md index a3d7faaf..b8964df3 100644 --- a/docs/usage/firststeps.md +++ b/docs/usage/firststeps.md @@ -2,6 +2,6 @@ After installing Onionr, there are several things to do: -1. Setup a [deterministic address](usage/deterministic.md) (optional) +1. Setup a [deterministic address](deterministic.md) (optional) 2. Start your node `/path/to/onionr.sh start` 3. Copy your ID and share it with friends \ No newline at end of file diff --git a/onionr/etc/onionrvalues.py b/onionr/etc/onionrvalues.py index e669cdfb..1373e223 100755 --- a/onionr/etc/onionrvalues.py +++ b/onionr/etc/onionrvalues.py @@ -25,11 +25,11 @@ import filepaths DENIABLE_PEER_ADDRESS = "OVPCZLOXD6DC5JHX4EQ3PSOGAZ3T24F75HQLIUZSDSMYPEOXCPFA====" PASSWORD_LENGTH = 25 ONIONR_TAGLINE = 'Private P2P Communication - GPLv3 - https://Onionr.net' -ONIONR_VERSION = '0.0.0' # for debugging and stuff +ONIONR_VERSION = '0.1.0' # for debugging and stuff ONIONR_VERSION_TUPLE = tuple(ONIONR_VERSION.split('.')) # (MAJOR, MINOR, VERSION) API_VERSION = '0' # increments of 1; only change when something fundamental about how the API works changes. This way other nodes know how to communicate without learning too much information about you. MIN_PY_VERSION = 7 -DEVELOPMENT_MODE = True +DEVELOPMENT_MODE = False MAX_BLOCK_TYPE_LENGTH = 15 MAX_BLOCK_CLOCK_SKEW = 120 MAIN_PUBLIC_KEY_SIZE = 32 diff --git a/onionr/onionrblocks/insert.py b/onionr/onionrblocks/insert.py index f836c28a..bfda0c34 100644 --- a/onionr/onionrblocks/insert.py +++ b/onionr/onionrblocks/insert.py @@ -12,6 +12,7 @@ import coredb import onionrproofs from onionrproofs import subprocesspow import logger + def insert_block(data: Union[str, bytes], header: str ='txt', sign: bool =False, encryptType:str ='', symKey:str ='', asymPeer:str ='', meta:dict = {}, @@ -161,4 +162,4 @@ def insert_block(data: Union[str, bytes], header: str ='txt', else: events.event('insertblock', {'content': plaintext, 'meta': plaintextMeta, 'hash': retData, 'peer': bytesconverter.bytes_to_str(asymPeer)}, threaded = True) coredb.daemonqueue.daemon_queue_add('remove_from_insert_list', data=dataNonce) - return retData \ No newline at end of file + return retData diff --git a/onionr/onionrutils/mnemonickeys.py b/onionr/onionrutils/mnemonickeys.py index 38669578..792cf8cd 100644 --- a/onionr/onionrutils/mnemonickeys.py +++ b/onionr/onionrutils/mnemonickeys.py @@ -40,4 +40,4 @@ def get_human_readable_ID(pub=''): def get_base32(words): '''converts mnemonic to base32''' - return unpaddedbase32.b32encode(niceware.passphrase_to_bytes(words.replace(DELIMITER, ' '))) + return unpaddedbase32.b32encode(niceware.passphrase_to_bytes(words.split(DELIMITER))) diff --git a/static-data/default_config.json b/static-data/default_config.json index 89cd28a6..d76ae4fb 100755 --- a/static-data/default_config.json +++ b/static-data/default_config.json @@ -12,7 +12,7 @@ "insert_deniable_blocks": true, "max_block_age": 2678400, "public_key": "", - "random_bind_ip": false, + "random_bind_ip": true, "use_bootstrap_list": true, "store_plaintext_blocks": true, "show_notifications": true diff --git a/static-data/www/board/index.html b/static-data/www/board/index.html index 961fe615..73c10910 100755 --- a/static-data/www/board/index.html +++ b/static-data/www/board/index.html @@ -12,6 +12,7 @@ + @@ -23,6 +24,7 @@ + @@ -111,7 +113,7 @@

- Board Name + Circle Name

@@ -120,6 +122,20 @@ Refresh Feed

+ + +

+
+ Note: All posts in Circles are publicly accessible. +


@@ -128,7 +144,7 @@
- Loading board... + Loading Circle...
None yet, try refreshing 😃 diff --git a/static-data/www/board/theme.css b/static-data/www/board/theme.css index 8d6cd8df..cc15b0ba 100755 --- a/static-data/www/board/theme.css +++ b/static-data/www/board/theme.css @@ -4,3 +4,8 @@ word-break:break-word; white-space: pre-wrap; } + +body{ + background-color: #212224; + color: white; +} \ No newline at end of file diff --git a/static-data/www/mail/index.html b/static-data/www/mail/index.html index c1802a77..3aaa7867 100755 --- a/static-data/www/mail/index.html +++ b/static-data/www/mail/index.html @@ -11,6 +11,7 @@ + diff --git a/static-data/www/mail/sendmail.js b/static-data/www/mail/sendmail.js index 7ecd878b..7cdebe00 100755 --- a/static-data/www/mail/sendmail.js +++ b/static-data/www/mail/sendmail.js @@ -23,9 +23,9 @@ to = document.getElementById('draftID') subject = document.getElementById('draftSubject') friendPicker = document.getElementById('friendSelect') -function sendMail(to, message, subject){ +function sendMail(toData, message, subject){ //postData = {"postData": '{"to": "' + to + '", "message": "' + message + '"}'} // galaxy brain - postData = {'message': message, 'to': to, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})} + postData = {'message': message, 'to': toData, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify({'subject': subject})} postData = JSON.stringify(postData) sendForm.style.display = 'none' fetch('/insertblock', { @@ -41,6 +41,7 @@ function sendMail(to, message, subject){ PNotify.success({ text: 'Queued for sending!' }) + to.value = subject.value = messageContent.value = "" }) } diff --git a/static-data/www/private/index.html b/static-data/www/private/index.html index 4096a367..b47d8f8f 100755 --- a/static-data/www/private/index.html +++ b/static-data/www/private/index.html @@ -13,6 +13,7 @@ + diff --git a/static-data/www/shared/about.html b/static-data/www/shared/about.html index 1ca7843d..bc8fafe8 100644 --- a/static-data/www/shared/about.html +++ b/static-data/www/shared/about.html @@ -3,7 +3,6 @@

Onionr is a private decentralized communication network

Source code

-
Core developers: @@ -12,6 +11,12 @@
  • Aaron Esau
  • +Contributors: + +
    Onionr is built with: diff --git a/static-data/www/shared/main/styles-new.css b/static-data/www/shared/main/styles-new.css index 8d3a8062..0c0b5bb1 100644 --- a/static-data/www/shared/main/styles-new.css +++ b/static-data/www/shared/main/styles-new.css @@ -58,4 +58,12 @@ html { .aboutLogo{ max-width: 25%; margin-bottom: 1em; +} +html{ + background-color: #212224; + color: white; +} +.textarea{ + background-color: #212224; + color: white; } \ No newline at end of file diff --git a/static-data/www/shared/useridenticons.js b/static-data/www/shared/useridenticons.js index 72c4fe97..55cca1b5 100644 --- a/static-data/www/shared/useridenticons.js +++ b/static-data/www/shared/useridenticons.js @@ -16,7 +16,7 @@ async function userIcon(pubkey, imgSize=64){ pubkey = await sha256(base32.decode.asBytes(pubkey)) let options = { //foreground: [0,0,0,1], // rgba black - background: [255, 255, 255, 255], // rgba white + background: [0, 0, 0, 0], // rgba white //margin: 0.1, size: imgSize, format: 'svg' // use SVG instead of PNG