summary refs log tree commit diff
AgeCommit message (Collapse)Author
2023-06-17Negative krowbar balances for pcoinlogin
Negative krowbar balances for pcoin too
2023-06-17Allowing krowbar balance to be negativelogin
Allowing krowbar balance to be negative
2023-01-03Weakened memory-hardness of scryptlogin (tilde.temm)
Weakened memory-hardness of scrypt to cater to memory requirements of tilde.team
2022-07-03Updated README.md (new pcoin_keys directory)login000
Updated README.md to correct the documentation for how a new program account should be created.
2022-06-27Update LICENCE year to 2022login000
2022-06-27Merge pull request #6 from Juliaria08/masterlogin000
Close parenthesis properly
2022-06-27Close parenthesis properlyJulian Marcos
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) [...]"
2022-06-25Merge pull request #5 from Juliaria08/masterlogin000
Maken editors generic in edit_program
2022-06-24Maken editors generic in edit_programJulian Marcos
I have just maken `which nano` to be \$EDITOR
2022-05-18Try-catch blocks in those cases where fork() failslogin
I've tried to add try-catch blocks in those cases where fork()s fail. It doesn't quite work well though.
2022-05-14Checking for empty key in pcoinlogin
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.
2022-03-12Fixes to how total balance are calculatedlogin
I can't believe I made this mistake, but I doublecounted minercoins, so now that doesn't happen.
2022-03-11Adding jmjl's 'ju coin' to the balancelogin
Adding jmjl's 'ju coin' (which is a copy of tildebot) to the tcoin and pcoin balance
2022-01-28pcoin add_internal_balance now doesn't allow you to add to your own internal ↵login
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
2022-01-26Fix to pcoin's silentsendlogin
Thanks to ~jmjl, found a bug where pcoin's silentsend was sending the wrong message even though the send itself was correct.
2022-01-23Changed tildescores file locationlogin
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
2022-01-22Added 'pcoin name' or 'pcoin -n' to get the name on the accountlogin
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.
2021-12-12made changes to be compatible with minerbot's new "username" format vs. the ↵login
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.
2021-11-20New pcoin function to change pcoin keyslogin
This will allow pcoin accounts to be transferred from one person to another
2021-10-18Fixes to permissions set by ntcoinlogin (tilde.temm)
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.
2021-10-17pcoin_keys fixedlogin
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.
2021-09-30Simple mistake, !a || !b is wrong, !a && !b is correctlogin
Simple logical mistake in checking for the TILDEGURU flag has been corrected in tcoin.cpp
2021-09-30Fixes for tilde.guru to tcoin.cpp and ntcoin_freebsd_tildegurulogin
/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.
2021-09-30Update to ntcoin_freebsd_tildeguru to chgrp in compile_tcoin and compile_pcoinlogin
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.
2021-09-25FreeBSD-specific compilation of scrypt was requiredlogin
scrypt_freebsd is the FreeBSD-compiled version of scrypt, included here.
2021-09-24Typo fix in ntcoin_freebsd_tildegurulogin
/ missing from /usr/local/bin/bash in one place.
2021-09-24Made ntcoin_freebsd_tildegurulogin
Freebsd version of ntcoin, specifically targetting tilde.guru but could work on other default FreeBSD configs.
2021-09-25Updated LICENSE year to 2021login000
2021-06-30Update the way pcoin_keys works to use a folder/directory instead of a ↵login
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.
2021-02-03Better way to handle 5 argumentslogin (__tcoin) (tilde.my.to)
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.
2021-02-03Fixed an unhandled case of too many arguments in 'tcoin send'login (__tcoin) (tilde.my.to)
Fixed a case of too many arguments in 'tcoin send' that wasn't handled. Thank you for finding this ~julian.
2021-01-31More buffer overflows fixedlogin (__tcoin) (tilde.my.to)
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.
2021-01-31Fixed buffer overflow because of hardcoded lengthslogin (__tcoin) (tilde.my.to)
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().
2021-01-06Merge branch 'master' of https://github.com/login000/tcoinlogin
Merging changes from the master branch because I forgot to do git pull
2021-01-06Added comment to tcoin.cpplogin
Added comment to tcoin.cpp to send the actual error message to stderr when running exit_program(err_no).
2021-01-06scrypt binary file's permissions were modifiedlogin
The scrypt binary file's permissions were modified on tilde.town.
2020-12-22Updated README.md with the correct instructions to use ntcoinlogin (thunix.net)
I had updated the 'ntcoin' script but had forgotten to change README.md.
2020-10-09Refactored send function in tcoin and pcoinlogin (tilde.institute)
Refactored the send function in tcoin and pcoin, and in the process, fixed a bug in pcoin's silentsend function.
2020-10-04Merge pull request #3 from MineRobber9000/masterlogin000
Remove outdated comment
2020-10-04Remove outdated commentMineRobber___T
The comment referred to using || instead of &&, despite the fact that the code now uses &&.
2020-09-22Updated ntcoin for OpenBSD systems to have #define TILDEINSTITUTElogin (tilde.institute)
This was done so that the date generation changes for OpenBSD and tilde.institute-type systems will apply.
2020-09-22Fixed bug in date generation for messages on OpenBSD systemslogin (tilde.institute)
On OpenBSD, the equivalent of %_d is %e. This is fixed for OpenBSD/tilde.institute type systems now.
2020-07-24Fixed a small syntax error in tcoin.cpplogin (tilde.club)
I was planning to make a change that I did not adequately reverse, so I have reversed it fully now. The change I was planning to make was to remove references to login@tilde.town on systems that were not tilde.town, but I decided against that change eventually (but didn't reverse it fully).
2020-07-24Custom host name possible in tcoin --help nowlogin (tilde.club)
1. Custom host name now possible in tcoin --help 2. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to fix a bug in -d/--def. 3. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to check for the correct number of arguments. 4. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to include the host name as a preprocessor constant.
2020-07-14Updated tcoin.cpp and pcoin.cpplogin (tilde.institute)
1. Removed unneeded WHOAMI_PATH preprocessor constant from pcoin.cpp. 2. Updated WHOAMI_PATH for tilde.institute to use "id -ru" to get the real uid on OpenBSD (/usr/bin/whoami doesn't get the real username on OpenBSD).
2020-07-12Fixed bug in ntcoin_openbsd_tildeinstitutelogin (tilde.institute)
Thanks to gbmor, I was able to replace base64 (fourmilab version) (which outputs \r\n and thus interferes with tr -d '\n') with gbase64 (the GNU coreutils version) which only outputs '\n'.
2020-07-11Fixed README.md againlogin (tilde.institute)
Removed references to realpath.c, which is no longer included. Added a few more requirements to the README.md for "ntcoin" to run.
2020-07-11Added ntcoin_openbsd_tildeinstitutelogin (tilde.institute)
I have created a version of ntcoin that works on tilde.institute's OpenBSD system. I suppose I have to make ntcoin better by using something like make and more POSIX-compliant.
2020-07-11Removed realpath.clogin (tilde.institute)
It wasn't useful.
2020-07-11Added new file realpath.login (tilde.institute)