Repository navigation
feat: add Locker Wallet - #603
Open
mounirrquiba wants to merge 1 commit into
Open
mounirrquiba wants to merge 1 commit into
mounirrquiba wants to merge 1 commit into
Conversation
Locker Wallet is a browser extension (Chrome, Brave, Firefox) whose keys never sit in the browser: each transaction is shown as a QR code and signed on Locker Vault, an app on an offline phone. On every page it defines window.lockerCosmos, a Keplr-compatible API marked isLocker. @cosmos-kit/locker-extension wraps that API, modelled on the Vultisig extension wallet: enable, disable, getKey, the direct offline signer, signDirect, signArbitrary and sendTx. The wallet signs SIGN_MODE_DIRECT only (its offline screen reviews the protobuf SignDoc), so an amino signer or signAmino is refused by name instead of being answered with another kind of signer. @cosmos-kit/locker re-exports it; the logo is added to public/images/logos/wallets and the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
@cosmos-kit/locker-extensionand@cosmos-kit/lockerfor Locker Wallet (https://lockerprotocol.com), a browser extension for Chrome, Brave and Firefox whose keys never sit in the browser: each transaction is shown as a QR code and signed on Locker Vault, an app on an offline phone.Changes
wallets/locker-extension, modelled on the Vultisig extension wallet: the client wrapswindow.lockerCosmos, the Keplr-compatible API the extension defines on every page (enable,disable,getKey, the direct offline signer,signDirect,signArbitrary,sendTx).SIGN_MODE_DIRECTonly, because its offline screen reviews the protobuf SignDoc it signs. An amino signer orsignAminois therefore refused with a message that says so, instead of being answered with another kind of signer.wallets/lockerre-exports it, as the other wallets do. Logo inpublic/images/logos/wallets/locker.svg, entry in the README.Testing
makage buildof both packages;eslintpasses;pnpm install --frozen-lockfileaccepts the lockfile.getOfflineSigner(chainId)gives the direct signer, an amino request is refused with the message above.