pub struct IssueRequest {
pub settlement_id: String,
pub attestation: Vec<u8>,
pub unit: UnitRef,
pub destination_did: String,
pub amount_minor_lo: u64,
pub amount_minor_hi: u64,
pub grant_cid: Vec<u8>,
}Expand description
A request to issue credits from a verified settlement (#1399, PAY-06).
The attestation is a PQ-hybrid-signed blob proving a committed settlement
row exists in the restricted settlement store. The server re-verifies it
against the issuer’s key material before calling the ledger’s internal
credit path. A client assertion of “paid” is never sufficient.
Fields§
§settlement_id: StringInternal settlement row id (opaque to the product layer; the server resolves it against its own restricted settlement store).
attestation: Vec<u8>PQ-hybrid-signed settlement attestation (COSE composite). The server verifies this before issuing any credits.
unit: UnitRefThe unit to issue.
destination_did: StringThe DID of the credit destination (the purchaser’s pseudonymous identity — never legal identity, per PAY-00 #6).
amount_minor_lo: u64Amount in minor units (u128 as hi/lo since JSON/capnp don’t natively carry u128). The server re-derives this from the settlement row; a client-supplied value is never trusted.
amount_minor_hi: u64§grant_cid: Vec<u8>The allocation grant CID this issuance backs (opaque bytes — the ledger correlates but never parses it).
Implementations§
Trait Implementations§
Source§impl Clone for IssueRequest
impl Clone for IssueRequest
Source§fn clone(&self) -> IssueRequest
fn clone(&self) -> IssueRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more