@rocketh/signer 0.11.22-testing.3 → 0.11.22-testing.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAEzE,eAAO,MAAM,UAAU,EAAE,sBASxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAEzE,eAAO,MAAM,UAAU,EAAE,sBAUxB,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { EIP1193LocalSigner } from 'eip-1193-signer';
2
2
  export const privateKey = async (protocolString) => {
3
- if (!protocolString.startsWith('0x')) {
4
- throw new Error(`Private key must start with 0x, got: ${protocolString}`);
3
+ const [proto, privateKeyString] = protocolString.split(':');
4
+ if (!privateKeyString.startsWith('0x')) {
5
+ throw new Error(`Private key must start with 0x, got: ${privateKeyString}`);
5
6
  }
6
- const privateKey = protocolString;
7
+ const privateKey = privateKeyString;
7
8
  return {
8
9
  type: 'signerOnly',
9
10
  signer: new EIP1193LocalSigner(privateKey),
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAGnD,MAAM,CAAC,MAAM,UAAU,GAA2B,KAAK,EAAE,cAAsB,EAAE,EAAE;IAClF,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,wCAAwC,cAAc,EAAE,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,UAAU,GAAG,cAA+B,CAAC;IACnD,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,IAAI,kBAAkB,CAAC,UAAU,CAAC;KAC1C,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAGnD,MAAM,CAAC,MAAM,UAAU,GAA2B,KAAK,EAAE,cAAsB,EAAE,EAAE;IAClF,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5D,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,wCAAwC,gBAAgB,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,MAAM,UAAU,GAAG,gBAAiC,CAAC;IACrD,OAAO;QACN,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,IAAI,kBAAkB,CAAC,UAAU,CAAC;KAC1C,CAAC;AACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocketh/signer",
3
- "version": "0.11.22-testing.3",
3
+ "version": "0.11.22-testing.4",
4
4
  "description": "add signer to rocketh",
5
5
  "publishConfig": {
6
6
  "access": "public"