Skip to main content

AddressOutcome

Struct AddressOutcome 

Source
pub struct AddressOutcome<const N: usize, const FP: usize = 32> {
    pub witness: AddressWitness<N, FP>,
    pub address: KappaLabel<N>,
}
Expand description

The result of a successful address() invocation. Generic over the κ-label byte width N and the fingerprint byte width FP (the selected σ-axis’s LABEL_BYTES / FINGERPRINT_MAX_BYTES; FP defaults to 32).

Fields§

§witness: AddressWitness<N, FP>

The replayable TC-05 witness (owns its trace + fingerprint).

§address: KappaLabel<N>

The ASCII wire-format κ-label, <algorithm>:<lowercase-hex>.

Implementations§

Source§

impl<const N: usize, const FP: usize> AddressOutcome<N, FP>

Source

pub fn from_grounded<S, const NIN: usize>( grounded: &Grounded<'_, S, NIN, FP>, ) -> Result<Self, LabelDecodeError>
where S: GroundedShape,

Extract the owned outcome from a model’s forward() result. Reads the κ-label output bytes, replays the derivation into an owned Trace, and snapshots the σ-projection fingerprint — none of which borrow the (about-to-be-dropped) input carrier.

N must equal the grounded output shape’s SITE_COUNT (the κ-label byte width); the per-axis entry points supply the matching literal.

§Errors

LabelDecodeError if the grounded output is not a well-formed N-byte ASCII κ-label (unreachable for the address realizations’ ψ₉ output; defensive against substrate corruption).

Trait Implementations§

Source§

impl<const N: usize, const FP: usize> Debug for AddressOutcome<N, FP>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<const N: usize, const FP: usize> Freeze for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> RefUnwindSafe for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> Send for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> Sync for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> Unpin for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> UnsafeUnpin for AddressOutcome<N, FP>

§

impl<const N: usize, const FP: usize> UnwindSafe for AddressOutcome<N, FP>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.