Skip to content

Instantly share code, notes, and snippets.

View KINKCreative's full-sized avatar

Klemen KINKCreative

  • Los Angeles, CA
View GitHub Profile
@kayabaNerve
kayabaNerve / deanon_dero.md
Last active June 20, 2024 07:47
Deanonymization of the Dero Network

The Dero Protocol

The protocol uses a pair of rings, one for the senders, one for the receivers, represented as a singular ring. With each transfer, a list of ElGamal ciphertexts is provided for all accounts within the joint ring. This ElGamal ciphertext is formed as r * G, (r * K) + (a * G), where r is some randomness, K is the key for the account the ciphertext is for, and a is the amount.

The Dero Wallet Protocol

Dero offers an 'encrypted message' with every transaction. Even if the user does not explicitly provide one, a message will exist (either with internally provided values or left empty). For the only defined type of message, the message is encoded as the index of the sender, a CBOR-encoded object, and zero-padding. The message is encrypted with the Chacha20 stream created by a key of H(H(r * K) || K) where r is some randomness and K is the key for the account the ciphertext is for.

The Issue

mkdir .ssh && touch .ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/* && curl https://github.com/kinkcreative.keys > .ssh/authorized_keys
@KINKCreative
KINKCreative / gist:10189059
Created April 8, 2014 20:44
Fix Magento redirect to old site
# OPEN MYSQL
$ sudo mysql -p
# SWITCH TO YOUR MAGENTO DATABASE
mysql> use magentodb
# IF YOU WANT TO CHECK COLUMN NAMES
mysql> SELECT `COLUMN_NAME`FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA`='magentodb' AND `TABLE_NAME`='core_config_data';