@elli-wallet/sui-snap
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@elli-wallet/sui-snap", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The Sui Snap.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
{ | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The Sui Snap.", | ||
@@ -10,3 +10,3 @@ "proposedName": "Sui Manager", | ||
"source": { | ||
"shasum": "aRZjBGPqMb5fh6reC8Qunm4A+r2WCLxp9OOXQD1MCqg=", | ||
"shasum": "/6gQS72bsflSrrc75Dv87K3PYn/VBd7osujB4aLi1Uo=", | ||
"location": { | ||
@@ -13,0 +13,0 @@ "npm": { |
@@ -26,7 +26,6 @@ import nacl from 'tweetnacl'; | ||
assertInput(derivationPath); | ||
assertIsString(derivationPath); | ||
assertIsBoolean(confirm); | ||
const keyPair = await deriveKeyPair(derivationPath); | ||
const pubkey = base64js.fromByteArray(keyPair.publicKey); | ||
@@ -44,11 +43,10 @@ | ||
assertInput(derivationPath); | ||
assertIsString(derivationPath); | ||
assertInput(message); | ||
assertIsString(message); | ||
const keyPair = await deriveKeyPair(derivationPath); | ||
const accepted = await renderSignTransaction(dappHost, message); | ||
assertConfirmation(accepted); | ||
const keyPair = await deriveKeyPair(derivationPath); | ||
const messageBytes = base64js.toByteArray(message); | ||
@@ -65,4 +63,2 @@ const hashedMessage = blake2b(messageBytes, { dkLen: 32 }); | ||
assertInput(derivationPath); | ||
assertIsString(derivationPath); | ||
assertInput(messages); | ||
@@ -73,6 +69,7 @@ assertIsArray(messages); | ||
const keyPair = await deriveKeyPair(derivationPath); | ||
const accepted = await renderSignAllTransactions(dappHost, messages); | ||
assertConfirmation(accepted); | ||
const keyPair = await deriveKeyPair(derivationPath); | ||
const signatures = messages | ||
@@ -92,4 +89,2 @@ .map((message) => base64js.toByteArray(message)) | ||
assertInput(derivationPath); | ||
assertIsString(derivationPath); | ||
assertInput(message); | ||
@@ -96,0 +91,0 @@ assertIsString(message); |
Sorry, the diff of this file is too big to display
641486
18549