Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
rounds of iteration : 2048
length : 64
algorithm : sha512
salt : "mnemonic" + passphrase"m/44'/118'/0'/0/0" "@type": "https://didcomm.org/issue-credential/1.0/offer-credential",
"@id": "<uuid-of-offer-message>",
"comment": "some comment",
"credential_preview": <json-ld object>,
"offers~attach": [
{
"@id": "libindy-cred-offer-0",
"mime-type": "application/json",
"data": {
"base64": "<bytes for base64>"
}
}
]
"~payment_request": { ... }
} "~payment_request": {
"methodData": [
{
"supportedMethods": "cheqd",
"data": {
"payeeId": "cheqd1fknpjldck6n3v2wu86arpz8xjnfc60f99ylcjd"
},
}
],
"details": {
"id": "0a2bc4a6-1f45-4ff0-a046-703c71ab845d",
"displayItems": [
{
"label": "commercial driver's license",
"amount": { "currency": "ncheq", "value": "1000" },
}
],
"total": {
"label": "Total due",
"amount": { "currency": "ncheq", "value": "1000" }
}
}
} Response {
check_tx: TxResult {
code: 0,
data: None,
log: "",
info: "",
gas_wanted: 0,
gas_used: 0,
events: [
],
codespace: ""
},
deliver_tx: TxResult {
code: 0,
data: Some(Data([...])),
log: "[{\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"send\"},{\"key\":\"sender\",\"value\":\"cheqd1fknpjldck6n3v2wu86arpz8xjnfc60f99ylcjd\"},{\"key\":\"module\",\"value\":\"bank\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"cheqd1pvnjjy3vz0ga6hexv32gdxydzxth7f86mekcpg\"},{\"key\":\"sender\",\"value\":\"cheqd1fknpjldck6n3v2wu86arpz8xjnfc60f99ylcjd\"},{\"key\":\"amount\",\"value\":\"1000ncheq\"}]}]}]",
info: "",
gas_wanted: 0,
gas_used: 0,
events: [...],
codespace: ""
},
hash: "1B3B00849B4D50E8FCCF50193E35FD6CA5FD4686ED6AD8F847AC8C5E466CFD3E",
height: 353
}{
"@type": "https://didcomm.org/issue_credential/1.0/request_credential",
"@id": "94af9be9-5248-4a65-ad14-3e7a6c3489b6",
"~thread": { "this": "5bc1989d-f5c1-4eb1-89dd-21fd47093d96" },
"cred_def_id": "KTwaKJkvyjKKf55uc6U8ZB:3:CL:59:tag1",
"~payment_receipt": {
"request_id": "0a2bc4a6-1f45-4ff0-a046-703c71ab845d",
"selected_method": "cheqd",
"transaction_id": "1B3B00849B4D50E8FCCF50193E35FD6CA5FD4686ED6AD8F847AC8C5E466CFD3E",
"payeeId": "0xD15239C7e7dDd46575DaD9134a1bae81068AB2A4",
"amount": { "currency": "ncheq", "value": "1000.0" }
}
}Issuer -> Holder: Credential Offer (+ payment_request)
Holder -> Ledger: payment transaction (with payment_request id in memo)
Ledger -> Holder: payment transaction response (with transaction_hash)
Holder -> Issuer: Credential Request (+ payment_receipt)
Issuer -> Ledger: Get payment transaction by hash
Ledger -> Issuer: Payment transaction
Issuer -> Issuer: Check `memo` field from received transaction
Issuer -> Holder: Credential
Holder -> Issuer: AcceptcommunityFunding = feesCollectedDec * communityTax
feePool.CommunityFund += communityFunding{
"data": {
"id": "L5AD5g65TDQr1PPHHRoiGf:3:FC4aWomrA13YyvYC1Mxw7:3:CL:14:some_tag:CL_ACCUM:tag1",
"cred_def_id": "FC4aWomrA13YyvYC1Mxw7:CL:5ZTp9g4SP6t73rH2s8z:some_tag"
"revoc_def_type": "CL_ACCUM",
"tag": "tag1",
"value": {
"max_cred_num": 1000000,
"tails_hash": "6619ad3cf7e02fc29931a5cdc7bb70ba4b9283bda3badae297",
"tails_location": "http://tails.location.com",
"issuance_type": "ISSUANCE_BY_DEFAULT",
"public_keys": {},
},
},
"owner": "L5AD5g65TDQr1PPHHRoiGf",
"signature": "5ZTp9g4SP6t73rH2s8zgmtqdXyTuSMWwkLvfV1FD6ddHCpwTY5SAsp8YmLWnTgDnPXfJue3vJBWjy89bSHvyMSdS",
"metadata": {}
}{}{
"data": {
"revoc_reg_def_id": "L5AD5g65TDQr1PPHHRoiGf:3:FC4aWomrA13YyvYC1Mxw7:3:CL:14:some_tag:CL_ACCUM:tag1"
"revoc_def_type": "CL_ACCUM",
"value": {
"accum": "accum_value",
"prev_accum": "prev_acuum_value",
"issued": [],
"revoked": [10, 36, 3478],
},
},
"owner": "L5AD5g65TDQr1PPHHRoiGf",
"signature": "5ZTp9g4SP6t73rH2s8zgmtqdXyTuSMWwkLvfV1FD6ddHCpwTY5SAsp8YmLWnTgDnPXfJue3vJBWjy89bSHvyMSdS",
"metadata": {}
}{}{
"attrNames": ["undergrad", "last_name", "first_name", "birth_date", "postgrad", "expiry_date"]
}cheqd-noded tx resource create-cl-schema <collection_id> <id> <name> <schema-data-json>
--private-key <private-identity-key-by-collection-id-diddoc>
cheqd-noded tx resource create-cl-schema zF7rhDBfUt9d1gJPjx7s1JXfUY7oVWkY\
9cc97dc8-ab3a-4a2e-a18a-13f5a54e9096\
CLSchema1\
"{\"attrNames\":[\"last_name\", \"first_name\"]}"\
--private-key <private-identity-key-by-collection-id-diddoc>
{
"id": "<cred_def_url>",
"type": "CL-CredDef",
"controller": "did:cheqd:mainnet-1:123456789abcdefghi",
"schemaId": "did:cheqd:mainnet-1:5ZTp9g4SP6t73rH2s8zgmtqdXyT?service=CL-Schema",
"tag": "some_tag",
"value": {
"primary": "...",
"revocation": "..."
}
}{
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"controller": "did:cheqd:mainnet-1:IK22KY2Dyvmuu2PyyqSFKu", // CredDef Issuer DID
"service":[
{
"id": "cheqd-cred-def",
"type": "CL-CredDef",
"serviceEndpoint": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue?service=CL-CredDef"
}
]
}{
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"schema":[
{
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue#schema1",
"type": "CL-Schema",
"controller": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"value": {
"version": "1.0",
"name": "Degree",
"attrNames": ["undergrad", "last_name", "first_name", "birth_date", "postgrad", "expiry_date"]
},
},
]
}{
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"schema": {
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"type": "CL-Schema",
"controller": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"value": {
"version": "1.0",
"name": "Degree",
"attrNames": ["undergrad", "last_name", "first_name", "birth_date", "postgrad", "expiry_date"]
},
},
}{
"id": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue",
"schema":[
{
"id": "cheqd-schema",
"type": "CL-Schema",
"schemaRef": "did:cheqd:mainnet-1:N22KY2Dyvmuu2PyyqSFKue?resource=true"
}
]
}{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3id.org/security/suites/jws-2020/v1",
"https://w3id.org/security/suites/ed25519-2020/v1"
],
"verificationMethod": [
{
"id": "did:cheqd:mainnet-1:IK22KY2Dyvmuu2PyyqSFKu#creddef-1", // Cred Def ID
"type": "CamLysCredDefJwk2021", // TODO: define and register this key type
"controller": "did:cheqd:mainnet-1:IK22KY2Dyvmuu2PyyqSFKu"
"publicKeyJwk":
{
[TODO: Define structure for CL JWK]
}
}
],
"assertionMethod": [
"#creddef-1"
]
}auth modulebank modulecheqd module (DID module)crisis moduledistribution modulegov modulemint moduleresource moduleslashing modulestaking moduleibc moduleibc-transfer module