pub struct Transfer {Show 14 fields
pub schema: String,
pub transfer_id: String,
pub source_claim: String,
pub source_claim_digest: String,
pub source_gate_status_claimed: String,
pub source_attachments: Vec<String>,
pub target_claim: String,
pub target_premise_digest: String,
pub target_attachments: Vec<String>,
pub homomorphism: HomomorphismDescriptor,
pub provenance: Provenance,
pub note: String,
pub signature: String,
pub signer_pubkey_hex: String,
}Expand description
A signed, content-addressed cross-domain transfer.
Fields§
§schema: String§transfer_id: Stringvtr_<16hex>, content-addressed over the canonical body with
transfer_id, signature, signer_pubkey_hex zeroed. Key-independent
so Rust and Python derive the same id from the same body.
source_claim: StringThe source claim object (vf_/vfr_/vat_) in domain X.
source_claim_digest: Stringsha256(A.claim.trim())[:16] — the same digest the gate keys A on.
source_gate_status_claimed: StringA’s gate status AS DECLARED. DISPLAY ONLY; re-derived at verify time via
derive_transfer_status, never trusted from here (mirrors
attempt.claimed_status).
source_attachments: Vec<String>The vva_ attachment ids that earn A’s gate status (the evidence set,
bound into the signed body).
target_claim: StringThe target claim object (vf_/vfr_) whose premise this discharges.
target_premise_digest: Stringsha256(premise.trim())[:16] of the exact premise A discharges — not
all of B. Pins the link to one obligation.
target_attachments: Vec<String>The vva_ attachment ids proving the TARGET verifier gate-verified the
mapped object φ(A) — the second of the two verifier receipts a
FrozenVerifier link stands on. derive_transfer_status requires the
gate over these to be Verified. Always present (an empty list for a
LeanHomomorphism link, whose theorem already covers every input).
homomorphism: HomomorphismDescriptor§provenance: Provenance§note: String§signature: String§signer_pubkey_hex: StringImplementations§
Source§impl Transfer
impl Transfer
Sourcepub fn build(draft: TransferDraft, key: &SigningKey) -> Result<Self, String>
pub fn build(draft: TransferDraft, key: &SigningKey) -> Result<Self, String>
Build + sign. The id is a pure content address of the canonical body
(key-independent); the signature binds the signer. Mirrors Attempt::build.
Sourcepub fn derive_id(&self) -> Result<String, String>
pub fn derive_id(&self) -> Result<String, String>
vtr_<16hex> over the canonical content preimage.
Sourcepub fn verify(&self) -> Result<(), String>
pub fn verify(&self) -> Result<(), String>
Structural verify: re-derive the id, verify the signature over the
content preimage. Any hand-edit to the body fails here. (Admission — that
the link is sound — is a separate read-time check, derive_transfer_status.)
Sourcepub fn deposit_event(
&self,
actor_id: &str,
actor_type: &str,
reason: &str,
) -> StateEvent
pub fn deposit_event( &self, actor_id: &str, actor_type: &str, reason: &str, ) -> StateEvent
Build the canonical transfer.deposited event. The full object travels
in payload.transfer; the reducer verifies and upserts it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transfer
impl<'de> Deserialize<'de> for Transfer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Transfer
impl StructuralPartialEq for Transfer
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.