IssueDigitalCertificate
Issues a new digital certificate for an account on the Shamwari Network. The certificate is signed using Dilithium post-quantum cryptography.
Request
POST /nxt?requestType=issueDigitalCertificate
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
recipient | string | Recipient account ID or SHAMWARI address | Yes |
name | string | Certificate name | Yes |
type | string | Certificate type | Yes |
expirationTimestamp | int | Expiration timestamp (Unix epoch) | Yes |
file | file | File data to be signed | Yes |
secretPhrase | string | Issuer's secret passphrase | Yes |
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123def456...",
"signature": "hex_encoded_signature...",
"errorCode": 0,
"errorDescription": ""
}
Example
curl -X POST "http://localhost:22024/nxt?requestType=issueDigitalCertificate" \
-d "recipient=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ" \
-d "name=IdentityCert" \
-d "type=IDENTITY" \
-d "expirationTimestamp=1893456000" \
-d "file=@certificate.pdf" \
-d "secretPhrase=your_secret_passphrase"