Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions relay/src/routes/tpre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ router.post("/reencrypt", async (req, res) => {

// 2. Deserialize Handlers
const kfragBytes = new Uint8Array(Buffer.from(kfragString, "base64"));
// VerifiedKeyFrag non ha un metodo statico fromBytes, usiamo KeyFrag + skipVerification
const kfrag = (umbral as any).KeyFrag.fromBytes(kfragBytes).skipVerification();
// Deserialize as KeyFrag and bypass verification to obtain a VerifiedKeyFrag
const kfrag = umbral.KeyFrag.fromBytes(kfragBytes).skipVerification();
const capsuleBytes = new Uint8Array(Buffer.from(capsuleB64, 'base64'));
const capsule = umbral.Capsule.fromBytes(capsuleBytes);

Expand Down
Loading