civkit / staking-credentials-spec

Staking Credentials specification
4 stars 3 forks source link

Client-side random request / service ID #8

Open ariard opened 1 year ago

ariard commented 1 year ago

Currently ServiceDeliveranceRequest is the following:

/// A service deliverance request attached with unblinded authenticated credential sent by a peer.
pub struct ServiceDeliveranceRequest {
        pub credentials: Vec<Credentials>,
        pub signatures: Vec<Signature>,
        pub service_id: u64,
        pub commitment_sig: Signature,
}

The service_id can be included in a stream of protocol-specific message to allow binding between control plane and data plane (e.g assigning credential to a sequence of HTLCs or nostr events where the same service_id tag is included). Uncertainty on the confidentiality property of such tagging / pairing.