Again composed 'default' variable name... which makes Webpack unhappy

This commit is contained in:
mhelander 2018-02-04 13:32:47 +02:00
parent 22bae446fa
commit 012fd7f18c

4
sea.js
View File

@ -1166,8 +1166,8 @@
y
})
}
const public = await importKey('jwk', keystoecdhjwk(pub), ecdhKeyProps, false, ['deriveKey'])
const props = Object.assign({}, ecdhKeyProps, { public })
const pubLic = await importKey('jwk', keystoecdhjwk(pub), ecdhKeyProps, false, ['deriveKey'])
const props = Object.assign({}, ecdhKeyProps, { public: pubLic })
const derived = await importKey('jwk', keystoecdhjwk(epub, epriv), ecdhKeyProps, false, ['deriveKey'])
.then(async (privKey) => {
// privateKey scope doesn't leak out from here!