1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11071],{4257:function(t,e,a){a.d(e,{af:function(){return c}});var n=a(31840);let r=[{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],s=[{type:"bytes4"}];async function c(t){return(0,n.readContract)({contract:t.contract,method:["0x1626ba7e",r,s],params:[t.hash,t.signature]})}},11071:function(t,e,a){a.r(e),a.d(e,{checkContractWalletSignature:function(){return o}});var n=a(13170),r=a(56578),s=a(99532),c=a(56940),u=a(40827),i=a(4257);async function o(t){var e;if(!(0,u.v)(t.signature))throw Error("The signature must be a valid hex string.");return await (0,i.af)({contract:t.contract,hash:(e=t.message,(0,n.w)(function(t){let e="string"==typeof t?(0,c.$G)(t):"string"==typeof t.raw?t.raw:(0,c.ci)(t.raw),a=(0,c.$G)(`\x19Ethereum Signed Message: 2${(0,s.d)(e)}`);return(0,r.zo)([a,e])}(e),void 0)),signature:t.signature})==="0x1626ba7e"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.