An open API service indexing awesome lists of open source software.

https://github.com/boolangery/d-cryptonote

d binding for cryptonote hash library
https://github.com/boolangery/d-cryptonote

cryptography cryptonote d dlang

Last synced: 10 months ago
JSON representation

d binding for cryptonote hash library

Awesome Lists containing this project

README

          

# d-cryptonote

[![DUB Package](https://img.shields.io/dub/v/cryptonote.svg)](https://code.dlang.org/packages/cryptonote)

`d-cryptonote` is a wrapper of cryptonote C++ library written by:
- The Monero Project
- Brian Gladman
- Oliver Weichhold
- others...

## build

Use the dub package manager.

The following dependencies are required to build the original cryptonote library:
- boost-devel
- stdc++

Available build configurations:

dub build --config=static // use a local static library

dub build --config=shared // use a shared library

dub test // run unit tests

## available functions

```d
import cryptonote;

static ubyte[] convertBlob(ubyte[] data, int size);

static ulong decodeAddress(string address);

static ulong decodeIntegratedAddress(string address);

static ubyte[] cryptonightHashSlow(ubyte[] data, int variant);

static ubyte[] cryptonightHashSlowLite(ubyte[] data);

static ubyte[] cryptonightHashFast(ubyte[] data);
```