mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Feat/clean sdk code (#155)
Co-authored-by: turnoffthiscomputer <98749896+remicolin@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { attributeToPosition } from '../../constants/constants';
|
||||
import { DisclosureOptions } from '../appType';
|
||||
import { SelfAppDisclosureConfig } from '../appType';
|
||||
|
||||
/*** OpenPassport Attestation ***/
|
||||
export function formatForbiddenCountriesListFromCircuitOutput(
|
||||
@@ -103,7 +103,7 @@ export function revealBitmapFromMapping(attributeToReveal: { [key: string]: stri
|
||||
|
||||
return reveal_bitmap;
|
||||
}
|
||||
export function revealBitmapFromAttributes(disclosureOptions: DisclosureOptions): string[] {
|
||||
export function revealBitmapFromAttributes(disclosureOptions: SelfAppDisclosureConfig): string[] {
|
||||
const reveal_bitmap = Array(88).fill('0');
|
||||
|
||||
Object.entries(disclosureOptions).forEach(([attribute, { enabled }]) => {
|
||||
|
||||
@@ -17,7 +17,6 @@ export interface SelfVerificationResult {
|
||||
credentialSubject: {
|
||||
merkle_root?: string;
|
||||
attestation_id?: string;
|
||||
targetRootTimestamp?: string;
|
||||
current_date?: string;
|
||||
issuing_state?: string;
|
||||
name?: string;
|
||||
|
||||
Reference in New Issue
Block a user