From 700294714c39cb6e8226b960671a33dc93362edc Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 11 Nov 2019 10:31:14 +1100 Subject: Raw entropy is interpreted as binary For example, using abandon abandon ability becomes 8 zeros but how does the entropy field know it's hex and not binary? It assumes the worst-case scenario of binary, so entropy should be shown in binary. Perhaps if entropy type is explicitly selected in the future this can be changed back to using hex. But while magical assumptions exist, binary it must be. --- tests/spec/tests.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 977294c..07918c2 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -4129,8 +4129,13 @@ fit('Converts mnemonics into raw entropy', function(done) { driver.findElement(By.css('.entropy')) .getAttribute("value") .then(function(entropy) { - expect(entropy).toBe("00000001"); - done(); + expect(entropy).toBe("00000000000000000000000000000001"); + driver.findElement(By.css('.phrase')) + .getAttribute("value") + .then(function(phrase) { + expect(phrase).toBe("abandon abandon about"); + done(); + }); }); }); }); -- cgit v1.2.3