diff --git a/examples/keystore-management/src/components/RLNMembershipRegistration.tsx b/examples/keystore-management/src/components/RLNMembershipRegistration.tsx index 842cbc2..bb25ce8 100644 --- a/examples/keystore-management/src/components/RLNMembershipRegistration.tsx +++ b/examples/keystore-management/src/components/RLNMembershipRegistration.tsx @@ -247,6 +247,41 @@ export default function RLNMembershipRegistration() { )} + +{identity && ( +
Your RLN Credentials:
++ ID Commitment: {Buffer.from(identity.IDCommitment).toString('hex')} +
++ ID Secret Hash: {Buffer.from(identity.IDSecretHash).toString('hex')} +
++ ID Nullifier: {Buffer.from(identity.IDNullifier).toString('hex')} +
++ ID Trapdoor: {Buffer.from(identity.IDTrapdoor).toString('hex')} +
+ + {/*+ Chain ID: {registrationResult.credentials.membership.chainId} +
++ Contract Address: {registrationResult.credentials.membership.address} +
++ Tree Index: {registrationResult.credentials.membership.treeIndex} +
*/} ++ These credentials are your proof of membership. Store them securely. +
+Your RLN Credentials:
Your RLN Credentials:
-- ID Commitment: {Buffer.from(identity.IDCommitment).toString('hex')} -
-- ID Secret Hash: {Buffer.from(identity.IDSecretHash).toString('hex')} -
-- ID Nullifier: {Buffer.from(identity.IDNullifier).toString('hex')} -
-- ID Trapdoor: {Buffer.from(identity.IDTrapdoor).toString('hex')} -
- - {/*- Chain ID: {registrationResult.credentials.membership.chainId} -
-- Contract Address: {registrationResult.credentials.membership.address} -
-- Tree Index: {registrationResult.credentials.membership.treeIndex} -
*/} -- These credentials are your proof of membership. Store them securely. -
-