Skip to content

Instantly share code, notes, and snippets.

View dimalinux's full-sized avatar

Dmitry Holodov dimalinux

View GitHub Profile
@dimalinux
dimalinux / README.md
Last active October 10, 2026 06:18
Different Monero Seed Phrases Can Create the Same Key

In the test below, we show that two distinct 25-word Monero seed phrases can represent the same key.

  • Wallet A's seed encodes the canonical scalar $k_s = 1$.
  • Wallet B's seed encodes the unreduced integer $s' = 1 + \ell$, where $\ell$ is the Ed25519 scalar group order:

$$\ell = 2^{252} + 27742317777372353535851937790883648493$$

Because public keys and signature scalars operate modulo $\ell$, adding any multiple of $\ell$ to a private scalar produces an equivalent point on the curve:

$$(k_s + \ell) \cdot G = k_s \cdot G + \ell \cdot G = k_s \cdot G + \mathcal{O} = k_s \cdot G$$

@dimalinux
dimalinux / Helioselene-Entry-README.md
Created July 3, 2025 03:47
README.md for my Helioselene Entry

13th Gen Intel(R) Core(TM) i9-13900H

Selene Point Add...
Reference took 1071ms, your implementation took 863ms
Improvement: 19.42%, Weight: 30%, Weighted Improvement: 5.83%

Helios Point Add...
Reference took 1109ms, your implementation took 831ms
Improvement: 25.07%, Weight: 15%, Weighted Improvement: 3.76%
@dimalinux
dimalinux / monero-zmq-message-types.md
Last active October 15, 2024 18:29
Monero ZMQ message types
@dimalinux
dimalinux / futexsleep.c
Created March 2, 2018 04:39
Using futex syscall to implement sleep
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/futex.h>
int
futex_sleep (time_t seconds, long nanoseconds)
{