mirror of
https://github.com/luxfi/precompile.git
synced 2026-09-24 00:26:21 +00:00
Git submodules don't work with Go module proxy — go get can't fetch the submodule contents. Vendored the src/ directory from TerenceGe/sr25519-donna directly into sr25519/donna/. Updated unity build paths (donna/src/ → donna/) and CGO CFLAGS. All 8 sr25519 tests pass.
14 lines
348 B
C
14 lines
348 B
C
/*
|
|
a custom randombytes must implement:
|
|
|
|
void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len);
|
|
|
|
ed25519_randombytes_unsafe is used by the batch verification function
|
|
to create random scalars
|
|
*/
|
|
#include "sr25519-randombytes.h"
|
|
|
|
void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len) {
|
|
sr25519_randombytes(p, len);
|
|
}
|