From 28b3865967495ae288bd31039808aa052b050bbc Mon Sep 17 00:00:00 2001 From: Michel Erokhov Date: Fri, 3 Nov 2023 12:59:11 +0100 Subject: [PATCH] refactor createAttestationInput --- src/helpers/createAttestationInput.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/helpers/createAttestationInput.ts b/src/helpers/createAttestationInput.ts index 10c1b37..01bfaa3 100644 --- a/src/helpers/createAttestationInput.ts +++ b/src/helpers/createAttestationInput.ts @@ -20,12 +20,7 @@ export default async function createAttestationInput( params: CreateProofParams, { message, publicKey, signature }: Signature ) { - const eddsaPublicKey = publicKey ?? { - x: - '3022588728262621016474471722865235652573366639695808085248430151628770415819', - y: - '14057266046546817928140094441885285376703482229051018203400595159797179656041', - } + const eddsaPublicKey = publicKey ?? getEddsaPublicKey() const merkleTreeInputs = params.merkleTreeInputs ?? (await generateMerkleTreeInputs(params, message[1]))