1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app/images/qrcode-wallet-logo.svg
Aaron Chen a931316a53
Introduce QR based signer into MetaMask (#12065)
* support qr based signer

* add CSP for fire fox

* get QR Hardware wallet name from device

* fix qrHardware state missing in runtime

* support qr based signer sign transaction

* refine Request Signature modal ui

* remove feature toggle

* refine ui

* fix notification is closing even there is a pending qr hardware transaction

* add chinese translation, refine ui, fix qr process was breaking in some case

* support import accounts by pubkeys

* refine qr-based wallet ui and fix bugs

* update @keystonehq/metamask-airgapped-keyring to fix that the signing hd path was inconsistent in some edge case

* fix: avoid unnecessay navigation, fix ci

* refactor qr-hardware-popover with @zxing/browser

* update lavamoat policy, remove firefox CSP

* refine qr reader ui, ignore unnecessary warning display

* code refactor, use async functions insteads promise

Co-authored-by: Soralit <soralitria@gmail.com>
2021-11-23 13:58:39 -03:30

11 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg width="107px" height="89px" viewBox="0 0 107 89" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>qr-logo的副本2</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="qr-logo的副本2" fill-rule="nonzero">
<rect id="矩形" fill="#FBFBFB" x="0" y="0" width="107" height="89"></rect>
<path d="M1.3333,41 L6.6667,41 C7.403,41 8,40.403 8,39.6667 L8,34.3333 C8,33.597 7.403,33 6.6667,33 L1.3333,33 C0.597,33 0,33.597 0,34.3333 L0,39.6667 C0,40.403 0.597,41 1.3333,41 Z M2.6667,35.6667 L5.3333,35.6667 L5.3333,38.3333 L2.6667,38.3333 L2.6667,35.6667 Z M0.6667,46.3333 L2,46.3333 C2.3682,46.3333 2.6667,46.0349 2.6667,45.6667 L2.6667,44.3333 C2.6667,43.9651 2.3682,43.6667 2,43.6667 L0.6667,43.6667 C0.2985,43.6667 0,43.9651 0,44.3333 L0,45.6667 C0,46.0349 0.2985,46.3333 0.6667,46.3333 Z M6.6667,49 L1.3333,49 C0.597,49 0,49.597 0,50.3333 L0,55.6667 C0,56.403 0.597,57 1.3333,57 L6.6667,57 C7.403,57 8,56.403 8,55.6667 L8,50.3333 C8,49.597 7.403,49 6.6667,49 Z M5.3333,54.3333 L2.6667,54.3333 L2.6667,51.6667 L5.3333,51.6667 L5.3333,54.3333 Z M19.3333,57 L23.3333,57 C23.7015,57 24,56.7015 24,56.3333 L24,52.3333 C24,51.9651 23.7015,51.6667 23.3333,51.6667 L22,51.6667 C21.6318,51.6667 21.3333,51.9651 21.3333,52.3333 L21.3333,54.3333 L18.6667,54.3333 L18.6667,56.3333 C18.6667,56.7015 18.9651,57 19.3333,57 Z M22.6667,33 L17.3333,33 C16.597,33 16,33.597 16,34.3333 L16,39.6667 C16,40.403 16.597,41 17.3333,41 L22.6667,41 C23.403,41 24,40.403 24,39.6667 L24,34.3333 C24,33.597 23.403,33 22.6667,33 Z M21.3333,38.3333 L18.6667,38.3333 L18.6667,35.6667 L21.3333,35.6667 L21.3333,38.3333 Z M6,43.6667 C5.6318,43.6667 5.3333,43.9651 5.3333,44.3333 L5.3333,45.6667 C5.3333,46.0349 5.6318,46.3333 6,46.3333 L10.6667,46.3333 L10.6667,43.6667 L6,43.6667 Z M10.6667,48.3333 C10.6667,48.7015 10.9651,49 11.3333,49 L13.3333,49 L13.3333,51 C13.3333,51.3682 13.6318,51.6667 14,51.6667 L16,51.6667 L16,46.3333 L10.6667,46.3333 L10.6667,48.3333 Z M10.6667,55 L10.6667,56.3333 C10.6667,56.7015 10.9651,57 11.3333,57 L15.3333,57 C15.7015,57 16,56.7015 16,56.3333 L16,54.3333 L11.3333,54.3333 C10.9651,54.3333 10.6667,54.6318 10.6667,55 Z M23.3333,43.6667 L16.6667,43.6667 C16.2985,43.6667 16,43.9651 16,44.3333 L16,46.3333 L18.6667,46.3333 L18.6667,48.3333 C18.6667,48.7015 18.9651,49 19.3333,49 L20.6667,49 C21.0349,49 21.3333,48.7015 21.3333,48.3333 L21.3333,46.3333 L23.3333,46.3333 C23.7015,46.3333 24,46.0349 24,45.6667 L24,44.3333 C24,43.9651 23.7015,43.6667 23.3333,43.6667 Z M18.6667,54.3333 L18.6667,51.6667 L16,51.6667 L16,54.3333 L18.6667,54.3333 Z M11.3333,38.3333 L12.6667,38.3333 C13.0349,38.3333 13.3333,38.0349 13.3333,37.6667 L13.3333,33.6667 C13.3333,33.2985 13.0349,33 12.6667,33 L11.3333,33 C10.9651,33 10.6667,33.2985 10.6667,33.6667 L10.6667,37.6667 C10.6667,38.0349 10.9651,38.3333 11.3333,38.3333 Z M13.3333,43 L13.3333,41.6667 C13.3333,41.2985 13.0349,41 12.6667,41 L11.3333,41 C10.9651,41 10.6667,41.2985 10.6667,41.6667 L10.6667,43.6667 L12.6667,43.6667 C13.0349,43.6667 13.3333,43.3682 13.3333,43 Z" id="形状" fill="#000000"></path>
<path d="M38.592,51.192 C37.7707,51.192 37.0027,51.0427 36.288,50.744 C35.584,50.4347 34.9653,50.0187 34.432,49.496 C33.8987,48.9627 33.4773,48.3387 33.168,47.624 C32.8693,46.9093 32.72,46.1413 32.72,45.32 C32.72,44.4987 32.8693,43.7307 33.168,43.016 C33.4773,42.3013 33.8987,41.6827 34.432,41.16 C34.9653,40.6267 35.584,40.2107 36.288,39.912 C37.0027,39.6027 37.7707,39.448 38.592,39.448 C39.4133,39.448 40.1813,39.6027 40.896,39.912 C41.6107,40.2107 42.2293,40.6267 42.752,41.16 C43.2853,41.6827 43.7013,42.3013 44,43.016 C44.3093,43.7307 44.464,44.4987 44.464,45.32 C44.464,46.0347 44.3467,46.7067 44.112,47.336 C43.888,47.9653 43.5733,48.536 43.168,49.048 L45.28,51 L43.248,51 L42.16,50.008 C41.6693,50.3813 41.12,50.6747 40.512,50.888 C39.904,51.0907 39.264,51.192 38.592,51.192 Z M38.592,49.784 C39.5413,49.784 40.3787,49.528 41.104,49.016 L39.296,47.336 L40.208,46.312 L42.08,48.056 C42.3573,47.6827 42.576,47.2667 42.736,46.808 C42.896,46.3387 42.976,45.8427 42.976,45.32 C42.976,44.7013 42.864,44.12 42.64,43.576 C42.416,43.032 42.1067,42.5573 41.712,42.152 C41.328,41.7467 40.864,41.432 40.32,41.208 C39.7867,40.9733 39.2107,40.856 38.592,40.856 C37.9733,40.856 37.3973,40.9733 36.864,41.208 C36.3307,41.432 35.8667,41.7467 35.472,42.152 C35.088,42.5573 34.784,43.032 34.56,43.576 C34.336,44.12 34.224,44.7013 34.224,45.32 C34.224,45.9493 34.336,46.536 34.56,47.08 C34.784,47.6133 35.088,48.0827 35.472,48.488 C35.8667,48.8933 36.3307,49.2133 36.864,49.448 C37.3973,49.672 37.9733,49.784 38.592,49.784 Z M46.9259,39.64 L50.7979,39.64 C51.3205,39.64 51.7899,39.7147 52.2059,39.864 C52.6325,40.0133 52.9899,40.2267 53.2779,40.504 C53.5765,40.7813 53.8005,41.112 53.9499,41.496 C54.1099,41.88 54.1899,42.3067 54.1899,42.776 C54.1899,43.608 53.9392,44.2907 53.4379,44.824 C52.9472,45.3573 52.2592,45.688 51.3739,45.816 L55.7579,51 L53.8859,51 L49.5179,45.832 L48.4139,45.832 L48.4139,51 L46.9259,51 L46.9259,39.64 Z M50.6219,44.504 C51.2725,44.504 51.7792,44.36 52.1419,44.072 C52.5152,43.784 52.7019,43.352 52.7019,42.776 C52.7019,42.2 52.5152,41.7627 52.1419,41.464 C51.7792,41.1653 51.2725,41.016 50.6219,41.016 L48.4139,41.016 L48.4139,44.504 L50.6219,44.504 Z M55.8681,45.832 L59.948,45.832 L59.948,47.208 L55.8681,47.208 L55.8681,45.832 Z M66.488,51.16 C65.88,51.16 65.325,51.0267 64.824,50.76 C64.323,50.4827 63.939,50.152 63.672,49.768 L63.672,51 L62.296,51 L62.296,39 L63.672,39 L63.672,44.232 C63.939,43.848 64.323,43.5227 64.824,43.256 C65.325,42.9787 65.88,42.84 66.488,42.84 C67.043,42.84 67.56,42.952 68.04,43.176 C68.52,43.3893 68.936,43.688 69.288,44.072 C69.64,44.4453 69.912,44.8827 70.104,45.384 C70.307,45.8853 70.408,46.424 70.408,47 C70.408,47.576 70.307,48.1147 70.104,48.616 C69.912,49.1173 69.64,49.56 69.288,49.944 C68.936,50.3173 68.52,50.616 68.04,50.84 C67.56,51.0533 67.043,51.16 66.488,51.16 Z M66.28,49.896 C66.685,49.896 67.053,49.8213 67.384,49.672 C67.715,49.5227 67.997,49.32 68.232,49.064 C68.477,48.7973 68.664,48.488 68.792,48.136 C68.931,47.784 69,47.4053 69,47 C69,46.5947 68.931,46.216 68.792,45.864 C68.664,45.512 68.477,45.208 68.232,44.952 C67.997,44.6853 67.715,44.4773 67.384,44.328 C67.053,44.1787 66.685,44.104 66.28,44.104 C65.875,44.104 65.507,44.1787 65.176,44.328 C64.845,44.4773 64.557,44.6853 64.312,44.952 C64.077,45.208 63.891,45.512 63.752,45.864 C63.624,46.216 63.56,46.5947 63.56,47 C63.56,47.4053 63.624,47.784 63.752,48.136 C63.891,48.488 64.077,48.7973 64.312,49.064 C64.557,49.32 64.845,49.5227 65.176,49.672 C65.507,49.8213 65.875,49.896 66.28,49.896 Z M75.67,51.16 C75.105,51.16 74.582,51.0533 74.102,50.84 C73.633,50.616 73.222,50.3173 72.87,49.944 C72.518,49.56 72.241,49.1173 72.038,48.616 C71.846,48.1147 71.75,47.576 71.75,47 C71.75,46.424 71.846,45.8853 72.038,45.384 C72.241,44.8827 72.518,44.4453 72.87,44.072 C73.222,43.688 73.633,43.3893 74.102,43.176 C74.582,42.952 75.105,42.84 75.67,42.84 C76.278,42.84 76.833,42.9787 77.334,43.256 C77.835,43.5227 78.219,43.848 78.486,44.232 L78.486,43 L79.862,43 L79.862,51 L78.486,51 L78.486,49.768 C78.219,50.152 77.835,50.4827 77.334,50.76 C76.833,51.0267 76.278,51.16 75.67,51.16 Z M75.878,49.896 C76.283,49.896 76.651,49.8213 76.982,49.672 C77.313,49.5227 77.595,49.32 77.83,49.064 C78.075,48.7973 78.262,48.488 78.39,48.136 C78.529,47.784 78.598,47.4053 78.598,47 C78.598,46.5947 78.529,46.216 78.39,45.864 C78.262,45.512 78.075,45.208 77.83,44.952 C77.595,44.6853 77.313,44.4773 76.982,44.328 C76.651,44.1787 76.283,44.104 75.878,44.104 C75.473,44.104 75.099,44.1787 74.758,44.328 C74.427,44.4773 74.139,44.6853 73.894,44.952 C73.659,45.208 73.473,45.512 73.334,45.864 C73.206,46.216 73.142,46.5947 73.142,47 C73.142,47.4053 73.206,47.784 73.334,48.136 C73.473,48.488 73.659,48.7973 73.894,49.064 C74.139,49.32 74.427,49.5227 74.758,49.672 C75.099,49.8213 75.473,49.896 75.878,49.896 Z M85.028,51.16 C84.602,51.16 84.196,51.1067 83.812,51 C83.428,50.8933 83.092,50.7387 82.804,50.536 C82.516,50.3227 82.282,50.0613 82.1,49.752 C81.919,49.4427 81.812,49.0853 81.78,48.68 L83.188,48.68 C83.231,48.9253 83.311,49.1333 83.428,49.304 C83.556,49.464 83.706,49.5973 83.876,49.704 C84.047,49.8107 84.228,49.8853 84.42,49.928 C84.623,49.9707 84.831,49.992 85.044,49.992 C85.482,49.992 85.844,49.9067 86.132,49.736 C86.431,49.5547 86.58,49.288 86.58,48.936 C86.58,48.616 86.479,48.3547 86.276,48.152 C86.074,47.9493 85.732,47.784 85.252,47.656 L84.1,47.352 C83.407,47.1707 82.89,46.8773 82.548,46.472 C82.207,46.0667 82.036,45.576 82.036,45 C82.036,44.6693 82.106,44.3707 82.244,44.104 C82.383,43.8373 82.575,43.6133 82.82,43.432 C83.066,43.24 83.354,43.096 83.684,43 C84.026,42.8933 84.399,42.84 84.804,42.84 C85.231,42.84 85.615,42.8987 85.956,43.016 C86.298,43.1333 86.591,43.2987 86.836,43.512 C87.092,43.7147 87.295,43.9547 87.444,44.232 C87.594,44.5093 87.684,44.808 87.716,45.128 L86.34,45.128 C86.234,44.776 86.042,44.4987 85.764,44.296 C85.498,44.0933 85.178,43.992 84.804,43.992 C84.42,43.992 84.095,44.0827 83.828,44.264 C83.562,44.4347 83.428,44.6747 83.428,44.984 C83.428,45.2827 83.524,45.5227 83.716,45.704 C83.908,45.8747 84.218,46.0187 84.644,46.136 L85.924,46.472 C86.596,46.6427 87.103,46.9307 87.444,47.336 C87.796,47.7307 87.972,48.232 87.972,48.84 C87.972,49.2347 87.898,49.5813 87.748,49.88 C87.599,50.168 87.391,50.408 87.124,50.6 C86.858,50.792 86.543,50.9307 86.18,51.016 C85.828,51.112 85.444,51.16 85.028,51.16 Z M93.329,51.16 C92.742,51.16 92.204,51.0587 91.713,50.856 C91.222,50.6427 90.796,50.3493 90.433,49.976 C90.081,49.6027 89.804,49.1653 89.601,48.664 C89.398,48.152 89.297,47.5973 89.297,47 C89.297,46.4133 89.388,45.8693 89.569,45.368 C89.761,44.856 90.033,44.4133 90.385,44.04 C90.737,43.6667 91.164,43.3733 91.665,43.16 C92.166,42.9467 92.732,42.84 93.361,42.84 C93.99,42.84 94.55,42.9627 95.041,43.208 C95.542,43.4427 95.958,43.768 96.289,44.184 C96.63,44.5893 96.876,45.0693 97.025,45.624 C97.185,46.168 97.244,46.7493 97.201,47.368 L90.689,47.368 C90.7,47.7307 90.774,48.0667 90.913,48.376 C91.062,48.6853 91.254,48.9573 91.489,49.192 C91.724,49.416 92.001,49.592 92.321,49.72 C92.641,49.848 92.982,49.912 93.345,49.912 C93.846,49.912 94.294,49.8107 94.689,49.608 C95.094,49.3947 95.42,49.048 95.665,48.568 L97.073,48.568 C96.977,48.92 96.822,49.256 96.609,49.576 C96.396,49.8853 96.129,50.1573 95.809,50.392 C95.5,50.6267 95.137,50.8133 94.721,50.952 C94.305,51.0907 93.841,51.16 93.329,51.16 Z M93.313,44.056 C93.025,44.056 92.742,44.0987 92.465,44.184 C92.188,44.2693 91.932,44.4027 91.697,44.584 C91.473,44.7653 91.276,44.9947 91.105,45.272 C90.934,45.5493 90.817,45.8853 90.753,46.28 L95.745,46.28 C95.617,45.5333 95.329,44.9787 94.881,44.616 C94.433,44.2427 93.91,44.056 93.313,44.056 Z M102.483,51.16 C101.917,51.16 101.395,51.0533 100.915,50.84 C100.445,50.616 100.035,50.3173 99.683,49.944 C99.331,49.56 99.053,49.1173 98.851,48.616 C98.659,48.1147 98.563,47.576 98.563,47 C98.563,46.424 98.659,45.8853 98.851,45.384 C99.053,44.8827 99.331,44.4453 99.683,44.072 C100.035,43.688 100.445,43.3893 100.915,43.176 C101.395,42.952 101.917,42.84 102.483,42.84 C103.091,42.84 103.645,42.9787 104.147,43.256 C104.648,43.5227 105.032,43.848 105.299,44.232 L105.299,39 L106.675,39 L106.675,51 L105.299,51 L105.299,49.768 C105.032,50.152 104.648,50.4827 104.147,50.76 C103.645,51.0267 103.091,51.16 102.483,51.16 Z M102.691,49.896 C103.096,49.896 103.464,49.8213 103.795,49.672 C104.125,49.5227 104.408,49.32 104.643,49.064 C104.888,48.7973 105.075,48.488 105.203,48.136 C105.341,47.784 105.411,47.4053 105.411,47 C105.411,46.5947 105.341,46.216 105.203,45.864 C105.075,45.512 104.888,45.208 104.643,44.952 C104.408,44.6853 104.125,44.4773 103.795,44.328 C103.464,44.1787 103.096,44.104 102.691,44.104 C102.285,44.104 101.912,44.1787 101.571,44.328 C101.24,44.4773 100.952,44.6853 100.707,44.952 C100.472,45.208 100.285,45.512 100.147,45.864 C100.019,46.216 99.955,46.5947 99.955,47 C99.955,47.4053 100.019,47.784 100.147,48.136 C100.285,48.488 100.472,48.7973 100.707,49.064 C100.952,49.32 101.24,49.5227 101.571,49.672 C101.912,49.8213 102.285,49.896 102.691,49.896 Z" id="形状" fill="#000000"></path>
</g>
</g>
</svg>