From 6faff95b16d24e465bd2d901191336adf3e0660b Mon Sep 17 00:00:00 2001 From: Shaunak Pandit Date: Mon, 26 Aug 2019 14:07:08 -0400 Subject: [PATCH 1/2] change method name, shoud fix travis build --- test/ed25519-hd-key.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ed25519-hd-key.ts b/test/ed25519-hd-key.ts index f7391c5..500548d 100644 --- a/test/ed25519-hd-key.ts +++ b/test/ed25519-hd-key.ts @@ -1,6 +1,6 @@ { // non-file scope variable names - const { getPublicKey, derivePath, getMasterKeyFromSeed } = require('../dist/ed25519-kd-key'); + const { getKeyPair, derivePath, getMasterKeyFromSeed } = require('../dist/ed25519-kd-key'); const vector_1_seed = '000102030405060708090a0b0c0d0e0f'; const vector_1 = [ @@ -85,7 +85,7 @@ path: vector.path, key: key.toString('hex'), chainCode: chainCode.toString('hex'), - publicKey: (await getPublicKey(key, true)).toString('hex') + publicKey: (await getKeyPair(key, true)).toString('hex') }).toEqual(vector); }); }); @@ -104,7 +104,7 @@ path: vector.path, key: key.toString('hex'), chainCode: chainCode.toString('hex'), - publicKey: (await getPublicKey(key, true)).toString('hex') + publicKey: (await getKeyPair(key, true)).toString('hex') }).toEqual(vector); }); }); From e867c41bc1b70bbd918b567cdae787cb9b49de6e Mon Sep 17 00:00:00 2001 From: Shaunak Pandit Date: Mon, 26 Aug 2019 14:15:40 -0400 Subject: [PATCH 2/2] still failed because it was trying to look through the whole keypair --- test/ed25519-hd-key.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ed25519-hd-key.ts b/test/ed25519-hd-key.ts index 500548d..a1aa06a 100644 --- a/test/ed25519-hd-key.ts +++ b/test/ed25519-hd-key.ts @@ -85,7 +85,7 @@ path: vector.path, key: key.toString('hex'), chainCode: chainCode.toString('hex'), - publicKey: (await getKeyPair(key, true)).toString('hex') + publicKey: (await getKeyPair(key, true)).publicKey.toString('hex') }).toEqual(vector); }); }); @@ -104,7 +104,7 @@ path: vector.path, key: key.toString('hex'), chainCode: chainCode.toString('hex'), - publicKey: (await getKeyPair(key, true)).toString('hex') + publicKey: (await getKeyPair(key, true)).publicKey.toString('hex') }).toEqual(vector); }); });