Skip to content

Conversation

jnaulty
Copy link
Contributor

@jnaulty jnaulty commented Oct 22, 2024

Description

Show the Transaction Hash the user sees on the Ledger as an option for the User in the Multisig Toolkit.

Currently, any user signing a Sui transaction with a ledger has a hard time verifying the transaction they are signing is the transaction they expect to sign.
This feature provides a way for the user to verify the Transaction Hash presented by the Ledger from the MultiSig Toolkit Interface

Test plan

Tested Locally

created transaction:

sui client transfer-sui --to 0x497f1b4197a6d9f7db028d79d068af120cf37d0250acd392eedb312a537712f9 --sui-coin-object-id 0xa9692324f4fd9ea6771e57aa0c600d18852da022d4bfc1f32a7e9a0c99b7eef9 --gas-budget 300000000 --serialize-unsigned-transaction
[warn] Client/Server api version mismatch, client api version : 1.34.0, server api version : 1.36.0
AAABACBJfxtBl6bZ99sCjXnQaK8SDPN9AlCs05Lu2zEqU3cS+QEBAQABAABJfxtBl6bZ99sCjXnQaK8SDPN9AlCs05Lu2zEqU3cS+QGpaSMk9P2epnceV6oMYA0YhS2gItS/wfMqfpoMmbfu+QUAAAAAAAAAIPBDd5NqCOpDQdJEBJ8Vwn9iC+AVUxn/Z8opYbvVTYgESX8bQZem2ffbAo150GivEgzzfQJQrNOS7tsxKlN3EvnoAwAAAAAAAACj4REAAAAAAA==

Compute Transaction hash in multisig toolkit: 0x46ac3b8e4f61981f7c016e0bcb53cc2bbd4bc52f8d5e51e335e0a5dc15ab9cb5

image

Verify same hash Ledger shows

image


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
multisig-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:47pm
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 6:47pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
sui-kiosk ⬜️ Skipped (Inspect) Oct 22, 2024 6:47pm
sui-typescript-docs ⬜️ Skipped (Inspect) Oct 22, 2024 6:47pm

Copy link
Contributor

@manolisliolios manolisliolios left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@tanstack/react-query": "^5.50.1",
"blake2b": "link:@noble/hashes/blake2b",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we aliasing blak2b like this?

Copy link
Contributor

@hayes-mysten hayes-mysten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (other than the blake2b link in package.json)

@jnaulty jnaulty merged commit 7c22ad3 into main Oct 22, 2024
53 checks passed
@jnaulty jnaulty deleted the jnaulty/output-blake2b-hash-offline-toolkit branch October 22, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants