From 7f49e14c06488b546e483c1466f8d3b8bb5129c7 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 28 Apr 2023 00:55:41 +0900 Subject: [PATCH] admin: updat dist files --- lib.commonjs/hash/message.d.ts | 4 ++++ lib.commonjs/hash/message.d.ts.map | 2 +- lib.commonjs/hash/message.js | 4 ++++ lib.commonjs/hash/message.js.map | 2 +- lib.esm/hash/message.d.ts | 4 ++++ lib.esm/hash/message.d.ts.map | 2 +- lib.esm/hash/message.js | 4 ++++ lib.esm/hash/message.js.map | 2 +- package-lock.json | 2 +- 9 files changed, 21 insertions(+), 5 deletions(-) diff --git a/lib.commonjs/hash/message.d.ts b/lib.commonjs/hash/message.d.ts index 9f0198596..9e088beb2 100644 --- a/lib.commonjs/hash/message.d.ts +++ b/lib.commonjs/hash/message.d.ts @@ -28,5 +28,9 @@ import type { SignatureLike } from "../crypto/index.js"; * */ export declare function hashMessage(message: Uint8Array | string): string; +/** + * Return the address of the private key that produced + * the signature %%sig%% during signing for %%message%%. + */ export declare function verifyMessage(message: Uint8Array | string, sig: SignatureLike): string; //# sourceMappingURL=message.d.ts.map \ No newline at end of file diff --git a/lib.commonjs/hash/message.d.ts.map b/lib.commonjs/hash/message.d.ts.map index ced323da1..d57b12235 100644 --- a/lib.commonjs/hash/message.d.ts.map +++ b/lib.commonjs/hash/message.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAOhE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,MAAM,CAGtF"} \ No newline at end of file +{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAOhE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,MAAM,CAGtF"} \ No newline at end of file diff --git a/lib.commonjs/hash/message.js b/lib.commonjs/hash/message.js index a1eb99905..cc5da95bc 100644 --- a/lib.commonjs/hash/message.js +++ b/lib.commonjs/hash/message.js @@ -44,6 +44,10 @@ function hashMessage(message) { ])); } exports.hashMessage = hashMessage; +/** + * Return the address of the private key that produced + * the signature %%sig%% during signing for %%message%%. + */ function verifyMessage(message, sig) { const digest = hashMessage(message); return (0, index_js_3.recoverAddress)(digest, sig); diff --git a/lib.commonjs/hash/message.js.map b/lib.commonjs/hash/message.js.map index 7eb4400dc..203310522 100644 --- a/lib.commonjs/hash/message.js.map +++ b/lib.commonjs/hash/message.js.map @@ -1 +1 @@ -{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAC/C,oDAAsD;AACtD,sDAAyD;AACzD,gDAAwD;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,WAAW,CAAC,OAA4B;IACpD,IAAI,OAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;QAAE,OAAO,GAAG,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC;KAAE;IACrE,OAAO,IAAA,oBAAS,EAAC,IAAA,iBAAM,EAAC;QACpB,IAAA,sBAAW,EAAC,wBAAa,CAAC;QAC1B,IAAA,sBAAW,EAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,OAAO;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AAPD,kCAOC;AAED,SAAgB,aAAa,CAAC,OAA4B,EAAE,GAAkB;IAC1E,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,IAAA,yBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC;AAHD,sCAGC"} \ No newline at end of file +{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAC/C,oDAAsD;AACtD,sDAAyD;AACzD,gDAAwD;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,WAAW,CAAC,OAA4B;IACpD,IAAI,OAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;QAAE,OAAO,GAAG,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC;KAAE;IACrE,OAAO,IAAA,oBAAS,EAAC,IAAA,iBAAM,EAAC;QACpB,IAAA,sBAAW,EAAC,wBAAa,CAAC;QAC1B,IAAA,sBAAW,EAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,OAAO;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AAPD,kCAOC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,OAA4B,EAAE,GAAkB;IAC1E,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,IAAA,yBAAc,EAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC;AAHD,sCAGC"} \ No newline at end of file diff --git a/lib.esm/hash/message.d.ts b/lib.esm/hash/message.d.ts index 9f0198596..9e088beb2 100644 --- a/lib.esm/hash/message.d.ts +++ b/lib.esm/hash/message.d.ts @@ -28,5 +28,9 @@ import type { SignatureLike } from "../crypto/index.js"; * */ export declare function hashMessage(message: Uint8Array | string): string; +/** + * Return the address of the private key that produced + * the signature %%sig%% during signing for %%message%%. + */ export declare function verifyMessage(message: Uint8Array | string, sig: SignatureLike): string; //# sourceMappingURL=message.d.ts.map \ No newline at end of file diff --git a/lib.esm/hash/message.d.ts.map b/lib.esm/hash/message.d.ts.map index ced323da1..d57b12235 100644 --- a/lib.esm/hash/message.d.ts.map +++ b/lib.esm/hash/message.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAOhE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,MAAM,CAGtF"} \ No newline at end of file +{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAOhE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,MAAM,CAGtF"} \ No newline at end of file diff --git a/lib.esm/hash/message.js b/lib.esm/hash/message.js index 839e02ee6..00c999499 100644 --- a/lib.esm/hash/message.js +++ b/lib.esm/hash/message.js @@ -40,6 +40,10 @@ export function hashMessage(message) { message ])); } +/** + * Return the address of the private key that produced + * the signature %%sig%% during signing for %%message%%. + */ export function verifyMessage(message, sig) { const digest = hashMessage(message); return recoverAddress(digest, sig); diff --git a/lib.esm/hash/message.js.map b/lib.esm/hash/message.js.map index 70679a32c..ff2ca4614 100644 --- a/lib.esm/hash/message.js.map +++ b/lib.esm/hash/message.js.map @@ -1 +1 @@ -{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,WAAW,CAAC,OAA4B;IACpD,IAAI,OAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;QAAE,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;KAAE;IACrE,OAAO,SAAS,CAAC,MAAM,CAAC;QACpB,WAAW,CAAC,aAAa,CAAC;QAC1B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,OAAO;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAA4B,EAAE,GAAkB;IAC1E,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file +{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src.ts/hash/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,WAAW,CAAC,OAA4B;IACpD,IAAI,OAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;QAAE,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;KAAE;IACrE,OAAO,SAAS,CAAC,MAAM,CAAC;QACpB,WAAW,CAAC,aAAa,CAAC;QAC1B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnC,OAAO;KACV,CAAC,CAAC,CAAC;AACR,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,OAA4B,EAAE,GAAkB;IAC1E,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 4b8404e4d..bff42bf38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ }, "node_modules/@adraffy/ens-normalize": { "version": "1.9.0", - "resolved": "git+ssh://git@github.com/ricmoo/ens-normalize.js.git#00b89f05be1224fcce5c8019f54cea06ae53572e", + "resolved": "git+ssh://git@github.com/ricmoo/ens-normalize.js.git#2d040533e57e4f25f9a7cc4715e219658ad454b5", "license": "MIT" }, "node_modules/@bcoe/v8-coverage": {