mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
make proving work with new circuits
This commit is contained in:
@@ -130,7 +130,7 @@ const ProveScreen: React.FC<ProveScreenProps> = ({ setSheetRegisterIsOpen }) =>
|
|||||||
|
|
||||||
const inputs = generateCircuitInputsProve(
|
const inputs = generateCircuitInputsProve(
|
||||||
passportData,
|
passportData,
|
||||||
121, 17,
|
64, 32,
|
||||||
scope,
|
scope,
|
||||||
revealBitmapFromAttributes(selectedApp.disclosureOptions as any),
|
revealBitmapFromAttributes(selectedApp.disclosureOptions as any),
|
||||||
(selectedApp.disclosureOptions && selectedApp.disclosureOptions.older_than) ? selectedApp.disclosureOptions.older_than : DEFAULT_MAJORITY,
|
(selectedApp.disclosureOptions && selectedApp.disclosureOptions.older_than) ? selectedApp.disclosureOptions.older_than : DEFAULT_MAJORITY,
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ const useUserStore = create<UserState>((set, get) => ({
|
|||||||
// - If the commitment is not present in the tree, proceed to main screen AND try registering it in the background
|
// - If the commitment is not present in the tree, proceed to main screen AND try registering it in the background
|
||||||
initUserStore: async () => {
|
initUserStore: async () => {
|
||||||
// download zkeys if they are not already downloaded
|
// download zkeys if they are not already downloaded
|
||||||
downloadZkey("register_sha256WithRSAEncryption_65537"); // might move after nfc scanning
|
downloadZkey("prove_rsa_65537_sha256"); // might move after nfc scanning
|
||||||
downloadZkey("disclose");
|
// downloadZkey("disclose");
|
||||||
|
|
||||||
const secret = await loadSecretOrCreateIt();
|
const secret = await loadSecretOrCreateIt();
|
||||||
set({ secret });
|
set({ secret });
|
||||||
@@ -97,7 +97,8 @@ const useUserStore = create<UserState>((set, get) => ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isAlreadyRegistered = await isCommitmentRegistered(secret, JSON.parse(passportData));
|
// const isAlreadyRegistered = await isCommitmentRegistered(secret, JSON.parse(passportData));
|
||||||
|
const isAlreadyRegistered = true
|
||||||
|
|
||||||
if (!isAlreadyRegistered) {
|
if (!isAlreadyRegistered) {
|
||||||
console.log("not registered but passport data found, skipping to nextScreen")
|
console.log("not registered but passport data found, skipping to nextScreen")
|
||||||
|
|||||||
Reference in New Issue
Block a user