text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d745cca"],{a675:function(e,t,s){"use strict";(function(e){s("1c01"),s("58b2"),s("8e6e"),s("f3e2"),s("d25f"),s("ac6a"),s("456d"),s("6b54"),s("87b3");var r=s("bd86"),a=s("539d"),n=s("55c1"),i=s("ce96"),o=s("2f62");function c(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,r)}return s}function l(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?c(Object(s),!0).forEach((function(t){Object(r["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}s("6983");t["a"]={components:{"interface-bottom-text":a["a"],"interface-container-title":n["a"]},data:function(){return{message:"",error:{show:!1,msg:""},showMessage:!1}},computed:l({},Object(o["b"])({web3:"web3"})),watch:{message:function(e){this.message=e,this.error={show:!1,msg:""}}},methods:{copyToClipboard:function(){this.$refs.signature.select(),document.execCommand("copy"),window.getSelection().removeAllRanges()},deleteInput:function(){this.$refs.signature.value=""},verifyMessage:function(){var t=JSON.parse(this.message),s=i["c"].hashPersonalMessage(i["c"].toBuffer(t.msg)),r=e.from(i["c"].getNakedAddress(t.sig),"hex");if(65!==r.length)return this.error.show=!0,void(this.error.msg="Something went terribly WRONG!!!!");r[64]=0===r[64]||1===r[64]?r[64]+27:r[64],"3"===t.version?"trezor"===t.signer?s=i["c"].getTrezorHash(t.msg):"ledger"===t.signer&&(s=i["c"].hashPersonalMessage(e.from(t.msg))):"1"===t.version&&(s=this.web3.utils.sha3(t.msg));var a=i["c"].ecrecover(s,r[64],r.slice(0,32),r.slice(32,64));i["c"].getNakedAddress(t.address)!==i["c"].pubToAddress(a).toString("hex")?(this.error.show=!0,this.error.msg="Something went terribly WRONG!!!!"):this.showMessage=!0}}}}).call(this,s("1c35").Buffer)},bb65:function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"verify-message-container"},[s("interface-container-title",{attrs:{title:e.$t("common.verifyMessage")}}),s("div",{staticClass:"content-container"},[s("div",{staticClass:"send-form"},[s("div",{staticClass:"title-container"},[s("div",{staticClass:"title"},[s("h4",[e._v("Signature:")]),s("div",{staticClass:"copy-buttons"},[s("span",{on:{click:e.deleteInput}},[e._v(e._s(e.$t("common.clear")))]),s("span",{on:{click:e.copyToClipboard}},[e._v(e._s(e.$t("common.copy")))])])])]),s("div",{staticClass:"the-form signature"},[s("textarea",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"},{name:"model",rawName:"v-model",value:e.message,expression:"message"}],ref:"signature",staticClass:"custom-textarea-1",attrs:{name:"verify"},domProps:{value:e.message},on:{input:function(t){t.target.composing||(e.message=t.target.value)}}})]),s("div",[""!==e.message&&!0===e.showMessage?s("p",[e._v("\n          "+e._s(JSON.parse(e.message).address)+"\n          "+e._s(e.$t("interface.verifiedMessage"))+":"),JSON.parse(e.message).msg.length>20?s("br"):e._e(),s("b",[e._v(e._s(JSON.parse(e.message).msg))])]):e._e(),""!==e.message&&!0===e.error.show?s("p",[e._v(e._s(e.error.show))]):e._e(),e.errors.has("verify")?s("p",[e._v(e._s(e.errors.first("verify")))]):e._e()])]),s("div",{staticClass:"submit-button-container"},[s("div",{staticClass:"buttons"},[s("button",{class:[e.errors.has("verify")||!0===e.error.show||""===e.message?"disabled":"","submit-button large-round-button-green-filled clickable"],on:{click:e.verifyMessage}},[e._v("\n          "+e._s(e.$t("common.verifyMessage"))+"\n        ")])]),s("interface-bottom-text",{attrs:{"link-text":e.$t("interface.helpCenter"),question:e.$t("interface.haveIssues"),link:"https://xinfin.network"}})],1)])],1)},a=[],n=s("a675"),i=n["a"],o=(s("c436"),s("2877")),c=Object(o["a"])(i,r,a,!1,null,"6fa3c936",null),l=c.exports;s.d(t,"default",(function(){return l}))},c436:function(e,t,s){"use strict";var r=s("df25"),a=s.n(r);a.a},df25:function(e,t,s){}}]);
  //# sourceMappingURL=chunk-6d745cca.8ad5fdf4.js.map