Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/gen/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

SHELL := /bin/bash
SCRYPT_DIR=../../node_modules/triplesec/contrib/scrypt-1.1.6
SCRYPT=${SCRYPT_DIR}/scrypt
PBKDF2=./pbkdf2.py
BU=py-venv/bin/bu
KU=py-venv/bin/ku

build: build-scrypt build-python

Expand All @@ -17,6 +18,6 @@ input:
iced gen_input.iced > input.json

spec:
(source py-venv/bin/activate && iced gen_spec.iced ${SCRYPT} ${PBKDF2} ${BU} > ../spec.json)
(source py-venv/bin/activate && iced gen_spec.iced ${SCRYPT} ${PBKDF2} ${KU} > ../spec.json)

.PHONY: build-scrypt build-python build
10 changes: 5 additions & 5 deletions test/gen/gen_spec.iced
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ class Runner
for line in out.join("\n").split(/\n+/) when line.length
[key,val] = line.split(/:\s+/)
if key[0] is ' '
bu_out[last_key][key.replace(/\s+/, '')] = val
bu_out[last_key][key.replace(/^\s+|\s+$/g, '')] = val
else
last_key = key
bu_out[key] = { _ : val}
last_key = key.replace(/\s+$/, '')
bu_out[last_key] = { "value" : val}

cb {
"private" : bu_out.WIF.uncompressed
"public" : bu_out['Bitcoin address'].uncompressed
"private" : bu_out.wif.uncompressed
"public" : bu_out['Bitcoin address uncompressed'].value
}

#-------------------
Expand Down