Skip to content
Snippets Groups Projects
Verified Commit 8f4daeee authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll:
Browse files

Fix sign and encode buffer methods

parent 0c12b431
No related branches found
No related tags found
No related merge requests found
Pipeline #117429 passed
{ {
"name": "@hiveio/metamask-snap", "name": "@hiveio/metamask-snap",
"version": "1.2.0", "version": "1.2.1",
"description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet", "description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet",
"main": "./dist/bundle.js", "main": "./dist/bundle.js",
"files": [ "files": [
......
{ {
"version": "1.2.0", "version": "1.2.1",
"description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet", "description": "Hive wallet extension allowing you to sign transactions using keys derived from your Metamask wallet",
"proposedName": "Hive Wallet", "proposedName": "Hive Wallet",
"repository": { "repository": {
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"url": "git+https://gitlab.syncad.com/hive/metamask-snap.git" "url": "git+https://gitlab.syncad.com/hive/metamask-snap.git"
}, },
"source": { "source": {
"shasum": "hAf7KSZu0ZiIU/ZhuggOpgN1Fw0TeiUw/bD2+lxjQN4=", "shasum": "MXajRhEb2TjGR6uz1Q/BWyrqfzvNX0WPxcdKx+2ZlaQ=",
"location": { "location": {
"npm": { "npm": {
"filePath": "dist/bundle.js", "filePath": "dist/bundle.js",
......
...@@ -15,12 +15,13 @@ export const ConfirmBufferSign = (origin: string, buffer: string, firstKey: KeyI ...@@ -15,12 +15,13 @@ export const ConfirmBufferSign = (origin: string, buffer: string, firstKey: KeyI
Confirm if you want to sign it using your: Confirm if you want to sign it using your:
</Text> </Text>
<Text> <Text>
- <Bold>{firstKeykey.role}</Bold> key (account index: <Italic>#{ String(firstKey.accountIndex ?? 0) }</Italic>) - <Bold>{firstKey.role}</Bold> key (account index: <Italic>#{ String(firstKey.accountIndex ?? 0) }</Italic>)
</Text> </Text>
<Text>This message will be encrypted for: </Text>
{ secondKey ? (typeof secondKey === "string" ? { secondKey ? (typeof secondKey === "string" ?
<Text>This message will be encrypted for: <Copyable value={secondKey}/></Text> : <Copyable value={ secondKey }/> :
<Text>This message will be encrypted for: <Bold>{secondKey.role}</Bold> key (account index: <Italic>#{ String(secondKey.accountIndex ?? 0) }</Italic>)</Text> <Text>- <Bold>{secondKey.role}</Bold> key (account index: <Italic>#{ String(secondKey.accountIndex ?? 0) }</Italic>)</Text>
) : <Text>This message can only be viewed by you</Text> } ) : <Text>- <Bold>yourself</Bold></Text> }
</Box> </Box>
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment