Skip to content

Instantly share code, notes, and snippets.

View anthony19114's full-sized avatar

Anthony Clark anthony19114

  • Not sure
View GitHub Profile

Keybase proof

I hereby claim:

  • I am anthony19114 on github.
  • I am realhellomoto (https://keybase.io/realhellomoto) on keybase.
  • I have a public key ASA_5NkH3PwEX4K00lburqQW1TkYArddppP79OY6XJWYLgo

To claim this, I am signing this object:

@anthony19114
anthony19114 / equihash.rs
Created August 7, 2018 07:24 — forked from str4d/equihash.rs
Equihash validator
use std::mem;
use std::ptr;
use byteorder::{LittleEndian, WriteBytesExt};
use libsodium_sys::crypto_generichash_blake2b_init_salt_personal;
use libsodium_sys::crypto_generichash_blake2b_state;
use libsodium_sys::crypto_generichash_blake2b_update;
use libsodium_sys::crypto_generichash_blake2b_final;
use libsodium_sys::crypto_generichash_statebytes;
use rustc_serialize::hex::ToHex;