mirror of
https://github.com/selfxyz/self.git
synced 2026-01-14 17:17:59 -05:00
* chore: centralize license header scripts * chore: run license header checks from root * add header to other files * add header to bundle * add migration script and update check license headers * convert license to mobile sdk * migrate license headers * remove headers from common; convert remaining * fix headers * add license header checks
21 lines
663 B
TypeScript
21 lines
663 B
TypeScript
// SPDX-FileCopyrightText: 2025 Social Connect Labs, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
|
|
|
|
// Granular import example: Circuit utilities only
|
|
// This will tree-shake out passport parsing, certificate parsing, etc.
|
|
|
|
import type { PassportData } from '@selfxyz/common/types/passport';
|
|
import { generateCircuitInputsDSC } from '@selfxyz/common/utils/circuits';
|
|
|
|
export function exampleCircuitUsage(passportData: PassportData) {
|
|
// Only circuit-related utilities are bundled
|
|
const inputs = generateCircuitInputsDSC(
|
|
passportData,
|
|
[], // dscTree
|
|
[], // csca tree
|
|
);
|
|
|
|
return inputs;
|
|
}
|