From 0cc028aaccbd532268f68f816cc941a30be03532 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:02:23 +0000 Subject: [PATCH 1/2] chore(deps): bump @zk-kit/baby-jubjub from 0.2.0 to 0.3.0 Bumps [@zk-kit/baby-jubjub](https://github.com/privacy-scaling-explorations/zk-kit) from 0.2.0 to 0.3.0. - [Release notes](https://github.com/privacy-scaling-explorations/zk-kit/releases) - [Changelog](https://github.com/privacy-scaling-explorations/zk-kit/blob/main/changelogithub.config.json) - [Commits](https://github.com/privacy-scaling-explorations/zk-kit/commits/baby-jubjub-v0.3.0) --- updated-dependencies: - dependency-name: "@zk-kit/baby-jubjub" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- crypto/package.json | 2 +- pnpm-lock.yaml | 25 +++++++++++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/crypto/package.json b/crypto/package.json index bcce31a932..02826b03fe 100644 --- a/crypto/package.json +++ b/crypto/package.json @@ -21,7 +21,7 @@ "typedoc": "typedoc --plugin typedoc-plugin-markdown --options ./typedoc.json" }, "dependencies": { - "@zk-kit/baby-jubjub": "^0.2.0", + "@zk-kit/baby-jubjub": "^0.3.0", "@zk-kit/eddsa-poseidon": "^0.5.1", "@zk-kit/poseidon-cipher": "^0.3.0", "ethers": "^6.11.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dac4de4012..06dcdd00a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -340,8 +340,8 @@ importers: crypto: dependencies: '@zk-kit/baby-jubjub': - specifier: ^0.2.0 - version: 0.2.0 + specifier: ^0.3.0 + version: 0.3.0 '@zk-kit/eddsa-poseidon': specifier: ^0.5.1 version: 0.5.1 @@ -6177,6 +6177,12 @@ packages: '@zk-kit/utils': 0.3.0 dev: false + /@zk-kit/baby-jubjub@0.3.0: + resolution: {integrity: sha512-mA3/M/+4C2vDtc0SpXf/q/nsvwBh+s42ou176sgDzqIBQD/u/N+LaLGorDh+X5AD3dVMHb8rheFpnnrJmjsqdA==} + dependencies: + '@zk-kit/utils': 0.6.0 + dev: false + /@zk-kit/circuits@0.4.0: resolution: {integrity: sha512-Di7mokhwBS3qxVeCfHxGeNIpDg1kTnr1JXmsWiQMZLkRTn3Hugh6Tl07J394rWD0pIWRwPQsinaMVL2sB4F8yQ==} dependencies: @@ -6205,6 +6211,12 @@ packages: resolution: {integrity: sha512-yVBczOwOSV+evSgdsJ0tpPn3oQpbL7a7fRqANDogleaLLte1IFxKTFLz3WNcgd28Asq2guMGiU6SmiEc61uHAg==} dev: false + /@zk-kit/utils@0.6.0: + resolution: {integrity: sha512-sUF1yVjlGmm7/NIN/+d+N8WOcI77bTzgV5+vZmp/S7lXcy4fmO+5TdHERRsDbs8Ep8K33EOC6V+U+JXzmjSe5A==} + dependencies: + buffer: 6.0.3 + dev: false + /@zkochan/js-yaml@0.0.6: resolution: {integrity: sha512-nzvgl3VfhcELQ8LyVrYOru+UtAy1nrygk2+AGbTm8a5YcO6o8lSjAT+pfg3vJWxIoZKOUhrK6UU7xW/+00kQrg==} hasBin: true @@ -6856,7 +6868,6 @@ packages: /base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - dev: true /batch@0.6.1: resolution: {integrity: sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==} @@ -7097,6 +7108,13 @@ packages: ieee754: 1.2.1 dev: true + /buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + dev: false + /builtins@1.0.3: resolution: {integrity: sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==} dev: true @@ -11426,7 +11444,6 @@ packages: /ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - dev: true /ignore-walk@5.0.1: resolution: {integrity: sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw==} From e85f20df139286f37c899a7c76d3b5731ac62648 Mon Sep 17 00:00:00 2001 From: 0xmad <0xmad@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:09:20 -0500 Subject: [PATCH 2/2] chore(crypto): minor type fix --- crypto/ts/keys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ts/keys.ts b/crypto/ts/keys.ts index 7c6a867587..17bed6ebd9 100644 --- a/crypto/ts/keys.ts +++ b/crypto/ts/keys.ts @@ -41,7 +41,7 @@ export const packPubKey = (pubKey: PubKey): bigint => BigInt(packPublicKey(pubKe */ export const unpackPubKey = (packed: bigint): PubKey => { const pubKey = unpackPublicKey(packed); - return pubKey.map((x: string) => BigInt(x)) as PubKey; + return pubKey.map((x) => BigInt(x)) as PubKey; }; /**