• React hook which can be used on 3rd party application websites that parses and verifies a PCD representing a Semaphore group membership proof. Params match those used in openZuzaluMembershipPopup.

    Parameters

    • pcdStr: string
    • semaphoreGroupUrl: string
    • originalSiteName: string
    • onVerified: ((valid) => void)
        • (valid): void
        • Parameters

          • valid: boolean

          Returns void

    • Optional externalNullifier: string

    Returns {
        error: string | undefined;
        group: SerializedSemaphoreGroup | undefined;
        proof: SemaphoreGroupPCD | undefined;
    }

Generated using TypeDoc