about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug in thousands separator so that it's not used for messages HEAD masterlogin2023-11-271-6/+6
| | | | The thousands separator was being used for messages and thus became incompatible with pcoin. Now, the thousands separator is only used to display amounts and not stored in the message files for tcoin/pcoin
* Removing thousands separator whenever the output of tcoin is pipedlogin2023-11-251-3/+8
| | | | Whenever the output of tcoin is piped, the thousands separator will not show up now.
* Fixed bug in thousands separatorlogin2023-11-231-4/+10
| | | | When the input is 0, the thousands-separator function was sending nothing. Now, it sends 0.
* Fix to thousands separator functionlogin2023-11-221-4/+6
| | | | The thousands separator function used to add leading zeros to numbers less than three digits. That has been fixed now.
* Added thousands separator to tcoin balance displaylogin2023-11-191-7/+70
| | | | Added thousands separators to tcoin balance display to make large balances easier to read.
* Added the ability to block a user from running tcoinlogin2023-11-041-1/+14
| | | | This was added to prevent tcoin from being run by certain users
* Added the paramters TCOIN_ERR_CONTACT_EMAIL and ↵login2023-07-232-0/+12
| | | | TCOIN_PASS_RESET_CONTACT_EMAIL to tilde.guru and tilde.institute's ntcoin initialisation scripts
* Adding preprocessor directives TCOIN_ERR_CONTACT_EMAIL and ↵login2023-07-233-11/+17
| | | | | | TCOIN_PASS_RESET_CONTACT_EMAIL to parameterise contact details Parameterised contact details via TCOIN_ERR_CONTACT_EMAIL and TCOIN_PASS_RESET_CONTACT_EMAIL will allow them to be customised for tilde.green's tcoin
* Fixing npcoin to initialise _MESSAGES.txt with "" instead of "0"login2023-06-181-1/+1
| | | | npcoin should initialise _MESSAGES.txt with "" instead of "0"
* locked users should not get krowbar, da or minerbot balanceslogin2023-06-171-0/+3
| | | | locked users should not get krowbar, da or minerbot balances
* Negative krowbar balances for pcoinlogin2023-06-171-1/+3
| | | | Negative krowbar balances for pcoin too
* Allowing krowbar balance to be negativelogin2023-06-171-1/+3
| | | | Allowing krowbar balance to be negative
* Weakened memory-hardness of scryptlogin (tilde.temm)2023-01-031-2/+2
| | | | Weakened memory-hardness of scrypt to cater to memory requirements of tilde.team
* Updated README.md (new pcoin_keys directory)login0002022-07-031-2/+2
| | | Updated README.md to correct the documentation for how a new program account should be created.
* Update LICENCE year to 2022login0002022-06-271-1/+1
|
* Merge pull request #6 from Juliaria08/masterlogin0002022-06-272-9/+9
|\ | | | | Close parenthesis properly
| * Close parenthesis properlyJulian Marcos2022-06-272-9/+9
|/ | | | | | | | | As seems login forgot to close a parenthesis in the manual recovery messages, and also appears like I am hunting for errors in tcoin :) I have just changed the instances of the manual recovery messages from "login@tilde.town (town-only) or login@tilde.team (internet wide [...]" to: "login@tilde.town (town-only) or login@tilde.team (internet wide) [...]"
* Merge pull request #5 from Juliaria08/masterlogin0002022-06-253-9/+9
|\ | | | | Maken editors generic in edit_program
| * Maken editors generic in edit_programJulian Marcos2022-06-243-9/+9
|/ | | | I have just maken `which nano` to be \$EDITOR
* Try-catch blocks in those cases where fork() failslogin2022-05-185-23/+79
| | | | | I've tried to add try-catch blocks in those cases where fork()s fail. It doesn't quite work well though.
* Checking for empty key in pcoinlogin2022-05-141-0/+7
| | | | pcoin now checks if an empty key was entered, and sends a different error message and error code for empty key as compared to incorrect key.
* Fixes to how total balance are calculatedlogin2022-03-122-51/+64
| | | | I can't believe I made this mistake, but I doublecounted minercoins, so now that doesn't happen.
* Adding jmjl's 'ju coin' to the balancelogin2022-03-112-67/+113
| | | | Adding jmjl's 'ju coin' (which is a copy of tildebot) to the tcoin and pcoin balance
* pcoin add_internal_balance now doesn't allow you to add to your own internal ↵login2022-01-281-0/+11
| | | | | | balance pcoin -aib now doesn't allow you to add to your own internal balance. in the future, pcoin -ib <your own program name> will allow you to see what your 'net balance' is, i.e., pcoin -b minus pcoin -to
* Fix to pcoin's silentsendlogin2022-01-261-1/+1
| | | | Thanks to ~jmjl, found a bug where pcoin's silentsend was sending the wrong message even though the send itself was correct.
* Changed tildescores file locationlogin2022-01-232-2/+4
| | | | Due to krowbar not being here and krowbar's tildebot not rejoining, shifting tildescores file location to jmjl's tildescores location. jmjl is running krobwar's tildebot with the name 'ju' in tilde.town's internal irc's #bots channel
* Added 'pcoin name' or 'pcoin -n' to get the name on the accountlogin2022-01-221-0/+5
| | | | This is expected to help a pcoin escrow program confirm that a key supplied to it is that of the right pcoin account by checking what the output of 'pcoin name' is. In the future, it may be expected that 'view key', 'spend key' and 'transfer key' would be three different keys that would split power over the pcoin account. And each of the previously mentioned 'keys' could be m-of-n keys. Maybe some kind of social recovery feature could also be added (where other users confirm who you are so you can get your account back, but you nominate them as your 'social recovery circle' beforehand.
* made changes to be compatible with minerbot's new "username" format vs. the ↵login2021-12-122-2/+29
| | | | | | | | old "~username" format Made this change so that new "!minercoin ask" awarded minercoins will still show up in tcoin without losing old !minercoins awarded. In other words, the inflation will continue until morale improves.
* New pcoin function to change pcoin keyslogin2021-11-204-1/+112
| | | | This will allow pcoin accounts to be transferred from one person to another
* Fixes to permissions set by ntcoinlogin (tilde.temm)2021-10-184-7/+7
| | | | ntcoin creates a new tcoin directory structure, and copies relevant files. Some permissions were set wrongly by ntcoin and its variants. Those have been fixed now.
* pcoin_keys fixedlogin2021-10-1716-37/+892
| | | | Thanks to ~jmjl, I was able to find that pcoin_keys didn't work. To fix it, tcoin uses sneaky magic but with stdin isntead of an argument, and a new library imported called popen2, that lets me send both stdin and receive stdout, to successfully get "ls <path to the pcoin_keys directory>" to work (it execl's another instance of the tcoin comand so that it runs under setuid instead of as the original user who ran it.
* Simple mistake, !a || !b is wrong, !a && !b is correctlogin2021-09-301-1/+1
| | | | Simple logical mistake in checking for the TILDEGURU flag has been corrected in tcoin.cpp
* Fixes for tilde.guru to tcoin.cpp and ntcoin_freebsd_tildegurulogin2021-09-302-4/+7
| | | | /usr/bin/whoami doesn't give the euid's username, but the uid's on FreeBSD, so did the same thing I did for tilde.institute, but for tilde.guru too and introduced a new flag for it, TILDEGURU.
* Update to ntcoin_freebsd_tildeguru to chgrp in compile_tcoin and compile_pcoinlogin2021-09-301-0/+2
| | | | tilde.guru doesn't have the default group of new files be the 'tilde' group, so the group should be manually changed in the compile_tcoin and compile_pcoin scripts. ntcoin_freebsd_tildeguru creates those scripts, so the changes have been made in that file.
* FreeBSD-specific compilation of scrypt was requiredlogin2021-09-252-1/+1
| | | | scrypt_freebsd is the FreeBSD-compiled version of scrypt, included here.
* Typo fix in ntcoin_freebsd_tildegurulogin2021-09-241-1/+1
| | | | / missing from /usr/local/bin/bash in one place.
* Made ntcoin_freebsd_tildegurulogin2021-09-241-0/+237
| | | | Freebsd version of ntcoin, specifically targetting tilde.guru but could work on other default FreeBSD configs.
* Updated LICENSE year to 2021login0002021-09-251-1/+1
|
* Update the way pcoin_keys works to use a folder/directory instead of a ↵login2021-06-304-46/+81
| | | | | | | | | | single file This is preparing tcoin/pcoin for the automatic registration of program accounts. Eventually, I want program accounts to be tradeable by there being a way to regenerate a new key. So, send the current key to whomever you want the program account to be used by, then the new owner regenerates the key to complete the transfer. The old owner will no longer be able to use the old key to operate the new account. The key is long and the key generation random enough for key collisions to be virtually impossible.
* Better way to handle 5 argumentslogin (__tcoin) (tilde.my.to)2021-02-032-6/+8
| | | | | | Improved the way 5 arguments were handled, where the intention was to send a message along with the amount and receiver, with a new error code and a slightly modified error message.
* Fixed an unhandled case of too many arguments in 'tcoin send'login (__tcoin) (tilde.my.to)2021-02-032-1/+13
| | | | | Fixed a case of too many arguments in 'tcoin send' that wasn't handled. Thank you for finding this ~julian.
* More buffer overflows fixedlogin (__tcoin) (tilde.my.to)2021-01-312-40/+45
| | | | | | | | There were many more places where I had hardcoded values, but should have used strlen() or sizeof(). I have gone through tcoin.cpp and pcoin.cpp, found those, and fixed them. Hopefully, this is all of them.
* Fixed buffer overflow because of hardcoded lengthslogin (__tcoin) (tilde.my.to)2021-01-312-11/+11
| | | | | | | | In user_has_initialised(..), the path lengths were hardcoded. This has now been changed to being calculated via sizeof(). In get_file_value and add_file_value, strlen() was used. This has also been replaced with sizeof().
* Merge branch 'master' of https://github.com/login000/tcoinlogin2021-01-061-2/+2
|\ | | | | | | Merging changes from the master branch because I forgot to do git pull
| * Updated README.md with the correct instructions to use ntcoinlogin (thunix.net)2020-12-221-2/+2
| | | | | | | | I had updated the 'ntcoin' script but had forgotten to change README.md.
* | Added comment to tcoin.cpplogin2021-01-061-0/+2
| | | | | | | | | | Added comment to tcoin.cpp to send the actual error message to stderr when running exit_program(err_no).
* | scrypt binary file's permissions were modifiedlogin2021-01-061-0/+0
|/ | | | The scrypt binary file's permissions were modified on tilde.town.
* Refactored send function in tcoin and pcoinlogin (tilde.institute)2020-10-092-86/+152
| | | | | Refactored the send function in tcoin and pcoin, and in the process, fixed a bug in pcoin's silentsend function.
* Merge pull request #3 from MineRobber9000/masterlogin0002020-10-041-1/+1
|\ | | | | Remove outdated comment
| * Remove outdated commentMineRobber___T2020-10-041-1/+1
|/ | | The comment referred to using || instead of &&, despite the fact that the code now uses &&.