#hashing #hash #algorithm #cryptography

xynth

Xynth is an ASIC/GPU-resistant cryptographic hashing algorithm written in pure Rust for x64 CPUs with AVX2 support

9 releases

0.2.0 Jul 27, 2024
0.1.7 Apr 6, 2024
0.1.6 Dec 28, 2023
0.1.0 Nov 26, 2023

#533 in Algorithms

37 downloads per month

MIT license

31KB
479 lines

Xynth

Discord Crates.io Version docs.rs

  • My profiles
    • RetroShare ID - ABCOR8VE42d6yImJdqnlE6FaAxRQvoT4dVgT/ibTYa0o61xRAh3epQEJT2N0b2Nyb3NzkEIAAAAEAAAyNjVob2RtNWU0bHhkcjJw dWZ3cmZyY3I1Z2xnZWhmMnhlYW9jMmJ3and0Z2J1MmtvbHphLmIzMi5pMnAEA5YMNg==
    • Tox.chat - B4444ACFE6E42A72F67879B13B8D758CD6BCD1F498E7AA882A5680FDE2B31D5CE07EEF119CD9

[!IMPORTANT] The resources listed above are mostly written in Russian

[ENG]

Xynth is a hashing algorithm, that runs large program on virtual VLIW (128 bit) CPU machine. Program code depends on input data. Xynth is developed for the same purpose, as RandomX - to avoid processing algo on GPU and ASIC.

master - latest release

[!CAUTION] This algorithm has not been tested using cryptanalysis

Requirements

  • x64 CPU with AVX2 & AES support

[RU]

Xynth - это алгоритм хэширования, который запускает большую программу на виртуальном VLIW (128-битном) процессоре. Программный код зависит от входных данных. Xynth разработан с той же целью, что и RandomX - чтобы избежать обрабатывания алгоритма на GPU и ASIC.

master - последний релиз

[!CAUTION] Этот алгоритм не был протестирован с помощью криптоанализа

Требования

  • Процессор x64 с поддержкой AVX2 и AES

Example

use xynth::XynthVM;
fn main() {
    let mut m: XynthVM = XynthVM::new();
    let a;
    let b;
    unsafe {
        a = m.hash(&1i32.to_le_bytes(), xynth::HashLength::H256, None);
        b = m.hash(&2i32.to_le_bytes(), xynth::HashLength::H256, None);
    }
    assert!(a != b)
}

MSRV

Latest rustc night build :c

The Path of the Xynth

  • Multithreading
  • Cryptanalysis
  • Learn how to use Git

Versioning

  • 0.0.x - patch
  • 0.x.0 - release with a change in the output hash
  • x.0.0 - full algorithm change

No runtime deps