commit d3843ec8716d5c099977315b62b2db6e45fc7ae8
parent c0276aaeacf2660b3405dbf62300ffd710c749de
Author: finwo <finwo@pm.me>
Date: Thu, 23 May 2024 16:07:54 +0200
Fix package & includes
Diffstat:
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/.editorconfig b/.editorconfig
@@ -7,6 +7,7 @@ insert_final_newline = true
charset = utf-8
indent_size = 2
indent_style = space
+trim_trailing_whitespace = true
[Makefile*]
indent_style = tab
diff --git a/Makefile b/Makefile
@@ -17,7 +17,7 @@ INCLUDES+=-I src
include lib/.dep/config.mk
-SRC:=$(filter-out $(shell realpath lib/orlp/ed25519/src/seed.c), $(SRC))
+SRC:=$(filter-out lib/orlp/ed25519/src/seed.c, $(SRC))
OBJ:=$(SRC:.c=.o)
LLO:=$(SRC:.c=.ll)
@@ -58,8 +58,8 @@ supercop.wasm: $(OBJ)
$(OBJ) || exit 1
src/supercop.wasm.ts: supercop.wasm
- echo -n "// Built on " > $@
- LC_TIME=en_US date >> $@
- echo -n "export const binary = Buffer.from('" >> $@
- base64 -w 0 < supercop.wasm >> $@
- echo "', 'base64');" >> $@
+ printf "// Built on " > $@
+ LC_TIME=en_US date >> $@
+ printf "export const binary = Buffer.from('" >> $@
+ base64 --encode < supercop.wasm | tr -d \\n | tr -d \\r >> $@
+ printf "', 'base64');" >> $@
diff --git a/package.ini b/package.ini
@@ -1,6 +1,7 @@
[dependencies]
-finwo/matter=https://github.com/finwo/matter/archive/refs/tags/edge.tar.gz
-orlp/ed25519=https://raw.githubusercontent.com/finwo/dep-repository/main/orlp/ed25519/package.ini
+finwo/matter=edge
+orlp/ed25519=master
+
[package]
deps=lib
name=finwo/supercop.ts
diff --git a/src/supercop.c b/src/supercop.c
@@ -1,5 +1,3 @@
-#define ED25519_NO_SEED
-
#define export __attribute__((visibility("default")))
#ifndef __has_builtin // Optional of course.