From 42785c2ea8aa82aaa19d79ec37d7a826b25f0b6f Mon Sep 17 00:00:00 2001 From: Gabriele Della Casa Venturelli Date: Tue, 19 Mar 2024 01:09:48 -0700 Subject: [PATCH] Fixed `KeylessSignature` serialization --- src/core/crypto/keyless.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/crypto/keyless.ts b/src/core/crypto/keyless.ts index cde72d201..15f8e223f 100644 --- a/src/core/crypto/keyless.ts +++ b/src/core/crypto/keyless.ts @@ -292,12 +292,13 @@ export class SignedGroth16Signature extends Signature { static load(deserializer: Deserializer): SignedGroth16Signature { const proof = Groth16Zkp.deserialize(deserializer); + const expHorizonSecs = deserializer.deserializeU64(); const hasExtraField = deserializer.deserializeUleb128AsU32(); const extraField = hasExtraField ? deserializer.deserializeStr() : undefined; const hasOverrideAudVal = deserializer.deserializeUleb128AsU32(); const overrideAudVal = hasOverrideAudVal ? deserializer.deserializeStr() : undefined; const [trainingWheelsSignature] = deserializer.deserializeVector(EphemeralSignature); - return new SignedGroth16Signature({ proof, trainingWheelsSignature, extraField, overrideAudVal }); + return new SignedGroth16Signature({ proof, expHorizonSecs, trainingWheelsSignature, extraField, overrideAudVal }); } // static isSignature(signature: Signature): signature is OpenIdSignature {