Jump to content


Anavrins's Content

There have been 18 items by Anavrins (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#270796 What is the colors api for?

Posted by Anavrins on 05 October 2017 - 11:10 AM in Ask a Pro

When you convert the value of colors.red or colors.orange, into binary, you get a 16-bit number, this binary array basically acts as a way to tell which colored cables should be active when you give that number to setBundledOutput.
00...000001 means only white cable
00...000010 means only orange cable
00...000011 means both white and orange cable

colors.combine justs simplifies the action of combining 0001 and 0010 into 0011, without the need to do it with logical operators.

More info: http://www.computerc...iki/Colors_(API)



#274979 What boundled cables work in 1.12?

Posted by Anavrins on 04 February 2018 - 11:10 PM in Ask a Pro

Are there any Bundled Cables mod that are available for 1.12 in the first place?



#275439 Unix time

Posted by Anavrins on 23 February 2018 - 04:11 PM in Ask a Pro

os.epoch("utc")
will give you the unix time in milliseconds, divide by 1000 for seconds.



#276931 Secure Ring LWE / ChaCha20 over modem

Posted by Anavrins on 22 April 2018 - 04:46 AM in APIs and Utilities

A few notes about this,
KillaVanilla's implementation of AES is known to be broken as it fails AES's test vectors,
it'd be better to use SquidDev's AES, or even better my Chacha20 for more speed and same security level.
You're also not doing any kind of message authentication (MAC), meaning any altered message sent to a receiver will be decrypted which might lead to many problems.



#276939 Secure Ring LWE / ChaCha20 over modem

Posted by Anavrins on 22 April 2018 - 05:53 PM in APIs and Utilities

View PostQuartz101, on 22 April 2018 - 10:34 AM, said:

Sadly I don't think ChaCha20 will work, due to Ring LWE exchanging 512 bit keys.
Neither does AES with it's same maximum keylength of 256-bits.
Easy solution, split the RLWE key in half, use first 256-bits for encryption and the second half for message authentication.

Since it's not recommended to use a shared secret out of any kind of handshake directly, an alternative solution would be to use the RLWE shared secret to derive multiple other keys.
Something like:
enckey   = sha256.pbkdf2(rlwe_secret, "1", 50, 32) #-- generates a 32 bytes (256-bits) long key, with 50 pbkdf2 iterations, based of the RLWE secret
mackey   = sha256.pbkdf2(rlwe_secret, "2", 50, 32) #-- use different salts to get a different 256-bits keys
sendkey  = sha256.pbkdf2(rlwe_secret, "3", 50, 32)
recvkey  = sha256.pbkdf2(rlwe_secret, "4", 50, 32)
morekeys = sha256.pbkdf2(rlwe_secret, "5", 50, 32)



#276942 Secure Ring LWE / ChaCha20 over modem

Posted by Anavrins on 22 April 2018 - 07:44 PM in APIs and Utilities

Sorry, here it is: https://pastebin.com/6UV4qfNF



#277042 reCAPTCHA V1 is shutdown

Posted by Anavrins on 29 April 2018 - 09:53 PM in Forum Discussion

Posted Image
This causes every answers you give to be valid, and will allow bots to sign up.



#275125 oVER 9000 KST

Posted by Anavrins on 09 February 2018 - 11:25 PM in General

 LoganDark2, on 09 February 2018 - 08:47 PM, said:

It's not my fault Apple doesn't support OpenCL. It's also not my fault I didn't mine Krist until this late.
You think you're so special because you have 260k Krist? Well, you're going to have to get over 5x that to get to the top of the list.
It's not our fault that you feel special about 9001KST.
It's not our fault that despite your relatively low balance, you wasted less energy than the rest of us mining a unvaluable currency.
It's not our fault that we decided to waste energy on Krist, rather than something like Bitcoin or something with actual value.

It's not my fault that this thread is now officially a bragging thread, oh wait, its always been that.
Posted Image



#271640 MineCoin

Posted by Anavrins on 06 November 2017 - 09:01 PM in General

Considering the size of the CC community, the amount of nodes we're gonna have might not be enough to provide good decentralization,
which might still allow the most powerful miners to modify the blockchain (list of transactions, balances, refunds).
Krist is already well established, I don't think we need to go to such length of complexity for something this small.
I'd rather trust 3d6 with the immutability of the transactions, rather than an random, unknown powerful miner.

It might not be a 'proper' cryptocurrency, but I'd say it's good enough.
Krist is supposed to be convenient to use and be able to be interfaced from within CC, you use one URL for everything Krist related.
For an actual blockchain like Bitcoin, there's no easy way to interface with it from within CC.



#269204 Krist - Minable currency that works across servers (paste updated)

Posted by Anavrins on 24 August 2017 - 02:01 AM in Programs

The main reason why it will (should) never be on any exchanges is because Krist is completely centralized, the whole system is running on one server controlled by 3d6 et al. which moves all the trust onto them, instead of on individual nodes around the world.
Nothing could potentially stop them from changing the ledger (database) to give them free money, that possibility is the reason why it shouldn't have any real world value, this isn't a problem with a currency that uses an actual blockchain like Bitcoin.

View PostBeeskee, on 18 August 2017 - 10:40 PM, said:

It would be cool if there was a way to mine this directly in Minecraft - even if it was really slow.
0swpD5L2 - Minecraft Miner <3 (tho ofc krist needs a minecraft-only mining branch so it isn't competing with GPUs lol) - sadly I get "attempt to index nil" for line 20.
Try downloading it again, I made some few modifications ;)



#269227 Krist - Minable currency that works across servers (paste updated)

Posted by Anavrins on 24 August 2017 - 11:28 PM in Programs

The miner is not obfuscated, the only obfuscated parts are basically the json part, found here, and my sha256 here.
The node offline error is caused by an outdated java version, you'll just need to update that to the latest 8u144 version.



#270785 Just the RGB values of the CC colors

Posted by Anavrins on 05 October 2017 - 10:58 AM in APIs and Utilities

http://www.computerc...iki/Colors_(API)
There's the RGB values documented at the bottom of that page.



#270804 Just the RGB values of the CC colors

Posted by Anavrins on 05 October 2017 - 07:37 PM in APIs and Utilities

{r=0xF0, g=0xF0, b=0xF0} would work just as well.



#268881 Better co-ords?

Posted by Anavrins on 08 August 2017 - 09:35 PM in Ask a Pro

Completely missed that for some reason.
For pocket computer there isn't really a way currently other than measuring the distance a message has traveled to get to your pocket comp, which is essentially what GPS uses.
I don't know of any mods that implements something like this, considering that modded peripheral for pockets is a thing that's only available in the beta version of CC, I think.



#268879 Better co-ords?

Posted by Anavrins on 08 August 2017 - 08:57 PM in Ask a Pro

It would be possible to make an API that, after initially telling its coordinates manually or by GPS, every step it takes is taken into account and updates its coordinates and save them to a file, without using any GPS signals.



#274978 Basic block detection

Posted by Anavrins on 04 February 2018 - 11:08 PM in Ask a Pro

turtle.detect should be enough for your needs, post the code you have so far so we can help you fix what isn't working.



#269043 Add Github OAuth login

Posted by Anavrins on 16 August 2017 - 11:53 PM in Forum Discussion

View PostEveryOS, on 16 August 2017 - 10:59 PM, said:

Title says it all.
No it doesn't, people need to stop thinking we have psychics power that can read your mind or something.
What do you mean exactly by this, what uses would it have, maybe give a bit more details of what you have in mind so we could discuss about it.



#269094 Add Github OAuth login

Posted by Anavrins on 18 August 2017 - 10:41 PM in Forum Discussion

View PostAnavrins, on 16 August 2017 - 11:53 PM, said:

what uses would it have
What would we gain from linking our Github accounts to a discussion forum?
I understand that it might be useful for something like Cloud9, importing and exporting code from Github sure sounds convenient, but I can't really see the point in the context of a forum...