Skip to content

OIDC/correctly generate blinding factor#80

Closed
calvogenerico wants to merge 17 commits intofeat/oidc-account-recoveryfrom
oidc/correctly-generate-blinding-factor
Closed

OIDC/correctly generate blinding factor#80
calvogenerico wants to merge 17 commits intofeat/oidc-account-recoveryfrom
oidc/correctly-generate-blinding-factor

Conversation

@calvogenerico
Copy link

Description

Secure blinding factor
Calculating correctly.

Missing: Request new passekey.

Base automatically changed from oidc/generate-proof to feat/oidc-account-recovery February 26, 2025 16:44
@github-actions
Copy link

github-actions bot commented Feb 26, 2025

Visit the preview URL for this PR (updated for commit 9965e1d):

https://zksync-auth-server-staging--pr80-oidc-correctly-gener-5z7jlxke.web.app

(expires Wed, 05 Mar 2025 17:04:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 509a9c9ea42583076f531c53cf2979c544d5d0b7

};
};

export const calculateAddKeyTxHash = async <
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to calculate the hash of the tx that we are going to broadcast to set the new passkey. That's what this method method does.

return bytesToBigInt(randomValues);
}

async function generateProf(): Promise<void> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1- Make oauth flow to calculate oidc digest.
2- This allow us to query user's address.
3- Calculate txhash
4- Second oauth flow, this time using txHash to build the nonce.
5- calculte proof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant