about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 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 &&.
* Updated ntcoin for OpenBSD systems to have #define TILDEINSTITUTElogin (tilde.institute)2020-09-221-3/+6
| | | | This was done so that the date generation changes for OpenBSD and tilde.institute-type systems will apply.
* Fixed bug in date generation for messages on OpenBSD systemslogin (tilde.institute)2020-09-222-4/+20
| | | | On OpenBSD, the equivalent of %_d is %e. This is fixed for OpenBSD/tilde.institute type systems now.
* Fixed a small syntax error in tcoin.cpplogin (tilde.club)2020-07-241-1/+1
| | | | | | 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).
* Custom host name possible in tcoin --help nowlogin (tilde.club)2020-07-243-12/+27
| | | | | | | 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.
* Updated tcoin.cpp and pcoin.cpplogin (tilde.institute)2020-07-143-3/+6
| | | | | | 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).
* Fixed bug in ntcoin_openbsd_tildeinstitutelogin (tilde.institute)2020-07-122-1/+1
| | | | 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'.
* Fixed README.md againlogin (tilde.institute)2020-07-111-1/+1
| | | | Removed references to realpath.c, which is no longer included. Added a few more requirements to the README.md for "ntcoin" to run.
* Added ntcoin_openbsd_tildeinstitutelogin (tilde.institute)2020-07-113-0/+227
| | | | 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.
* Removed realpath.clogin (tilde.institute)2020-07-112-279/+1
| | | | It wasn't useful.
* Added new file realpath.login (tilde.institute)2020-07-111-0/+278
|
* Updated README.mdlogin0002020-07-111-1/+2
| | | Updated README.md to include some dependencies for running "ntcoin".
* Updated README.mdlogin0002020-07-111-1/+1
| | | Changed first line of description to match Github's description.
* Fixed tcoin --help againlogin0002020-04-231-2/+2
| | | I forgot that base_amount held the number of centitildecoins, and that I had to use cout_formatted_amount() to actually send to stdout the number of tildecoins (with decimal places).
* Fixed a typo in void help(long long int)login0002020-04-231-1/+1
| | | I forgot to type "help(" and had just typed "void long long int base_amount)".
* Fixed a mistake in tcoin --helplogin0002020-04-231-3/+3
| | | Brought to my attention by ~mastergeek on tilde.team, the tcoin help incorrectly said that the number of tildecoins a user started with was 1000. It was actually the current base amount (unaltered by other sources like minercoin, tildebot or daily-adventure). Now, the help shows the right amount of starting coins.
* Fixed typo 'creata' to 'create'login2020-03-111-1/+1
| | | | Thanks to ~lickthecheese on tilde.town, tilde.team and other tildeboxes, I was informed of this typo: 'creata' -> 'create'
* Nobody's perfect: .n\n -> .\n\n in tcoin.cpp and pcoin.cpplogin (envs.net)2020-02-222-6/+6
| | | | | And I don't know how to clean my commits after having pushed them to remote origin/master. Maybe a Git stash and hard reset?
* Made a minor mistake in pcoin.cpp regarding symbolic constant ↵login (tilde.temm)2020-02-211-1/+1
| | | | | | | | | | TCOIN_MSG_LENGTH_LIMIT I made a switch from TCOIN_MSG_LENGTH to TCOIN_MSG_LENGTH_LIMIT for the symbolic constant representing the maximum number of characters of a transaction message. I changed all instances of the symbolic constant to this new name in tcoin.cpp, but forgot to do it in one instance in pcoin.cpp. This goes on to show that I need to develop tests for tcoin and pcoin, as well as start using getopt from util-linux for proper options handling.
* Implemented message-character limits in tcoin.cpp and pcoin.cpplogin (tilde.temm)2020-02-212-0/+60
| | | | | | | | | | | | | After having received a 10000-character transaction message from ~jan6@envs.net, I finally came around to implementing character limits on transaction messages. Previously, I was of the opinion that one should be able to send a movie as a transaction message if one so wished. I took inspiration for an appropriate character limit from Australia's NPP (New Payments Platform), which has a 280-character limit on transaction messages. I strongly suspect this limit came from Twitter's analysis of tweets in different languages and Twitter research that concluded that a 280-character tweet was the appropriate length of tweet. A transaction message is supposedly like a tweet with some money sent along with it.
* Added silentsend with message case to pcoin.cpplogin (tilde.temm)2020-02-211-0/+15
| | | | | | | | I don't know how I missed this, because I remember coming across this deficiency before. I had missed a case, where silentsend is requested but with a message. Previously, it would fail without any message to stdout or stderr (only a return code). Now, silentsend with a message works even on pcoin.cpp (tcoin.cpp already had this change).
* Merge branch 'master' of https://github.com/login000/tcoinlogin (tilde.temm)2020-02-212-5/+15
|\ | | | | | | | | I made a mistake. I should have done this before making my commits. That's the only reason why this merge is necessary.
| * Many instances of \u23CE were left unmodified, so those were changed toologin (envs.net)2020-02-222-5/+15
| | | | | | | | | | | | I had forgotten to change \u23CE to <new-line> and introduce a check for <vertical-tab> in many many places in tcoin.cpp and pcoin.cpp. I should probably put these things in some kind of function so I don't repeat myself. I'll probably do that in a future commit.
* | Some more errors (specifically, fatal errors) were taken out into symbolic ↵login (tilde.temm)2020-02-212-20/+35
|/ | | | | | constants I had forgotten to handle the fatal errors and take the error numbers out into symbolic constants. I have now done that in tcoin.cpp and pcoin.cpp
* Separated error codes out into symbolic constants in tcoin.cpp and pcoin.cpplogin (envs.net)2020-02-222-60/+110
| | | | This doesn't change functionality. It is simply a refactor that separates error codes out into symbolic constants in tcoin.cpp and pcoin.cpp.
> 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720