chiavdf 1.1.13

Bindings to the chiavdf C++ library.
Documentation
1
2
3
4
5
6
7
8
9
10
#ifndef CREATE_DISCRIMINANT_H
#define CREATE_DISCRIMINANT_H

#include "proof_common.h"

integer CreateDiscriminant(std::vector<uint8_t>& seed, int length = 1024) {
    return HashPrime(seed, length, {0, 1, 2, length - 1}) * integer(-1);
}

#endif // CREATE_DISCRIMINANT_H