Feat/kyc sdk (#1709)

* feat: kyc sdk

* lint

* bump: minor sdk version
This commit is contained in:
Nesopie
2026-02-05 18:43:55 +05:30
committed by GitHub
parent e2fae7d62e
commit 4c8ffbd17f
9 changed files with 901 additions and 35 deletions

View File

@@ -20,7 +20,7 @@ export function getRevealedDataPublicSignalsLength(attestationId: AttestationId)
case 3:
return Math.ceil(119 / 31);
case 4:
return Math.ceil(30 / 31);
return Math.ceil(298 / 31);
default:
throw new ProofError(`Invalid attestation ID: ${attestationId}`);
}
@@ -30,7 +30,7 @@ export const bytesCount: Record<AttestationId, number[]> = {
1: [31, 31, 31],
2: [31, 31, 31, 1],
3: [31, 31, 31, 26],
4: [31, 31, 31, 26],
4: [31, 31, 31, 31, 31, 31, 31, 31, 31, 19],
};
/**