issue_pipa_zk_identity
Emite uma ZK identity attestation no pipa_korea_zk_identity program (PIPA Korea Art. 24 — i-PIN replacement). Requer SP1 v6 Groth16 proof real (356 bytes) + public_inputs (96 bytes) onde public_inputs[32..64] = subject_commitment. 4 kinds: 1=age_gate_19, 2=korean_resident, 3=kyc_verified, 4=domestic_representative.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subjectCommitmentHex": "<subjectCommitmentHex>",
"attributeKind": "<attributeKind>",
"attributeMetadataHashHex": "<attributeMetadataHashHex>",
"proofHex": "<proofHex>",
"publicInputsHex": "<publicInputsHex>"
},
"name": "issue_pipa_zk_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proofHex | Yes | 356-byte hex SP1 v6 Groth16 proof. Gerar via mesma pipeline que compliance-registry / consent-manager. | |
| expiresAt | No | Unix timestamp opcional de expiração. | |
| storageUri | No | URI off-chain (max 128 bytes). | |
| attributeKind | Yes | 1=age_gate_19, 2=korean_resident, 3=kyc_verified, 4=domestic_representative. | |
| publicInputsHex | Yes | 96-byte hex ABI-encoded PublicValuesStruct. public_inputs[32..64] DEVE ser igual a subjectCommitmentHex. | |
| subjectCommitmentHex | Yes | 32-byte hex commitment (Poseidon ou sha256 de identity_secret + salt). Sem PII. | |
| attributeMetadataHashHex | Yes | 32-byte hex sha256 dos metadados off-chain (issuance details, validity). |