[][src]Struct holochain_core_types::signature::Provenance

pub struct Provenance(pub Address, pub Signature);

Provenance is a tuple of initiating agent public key and signature of some item being signed this type is used in headers and in capability requests where the item being signed is implicitly known by context

Methods

impl Provenance[src]

pub fn new(source: Address, signature: Signature) -> Self[src]

Creates a new provenance instance with source typically being an agent address (public key) and the signature some signed data using the private key associated with the public key.

pub fn source(&self) -> Address[src]

pub fn signature(&self) -> Signature[src]

Trait Implementations

impl<'a> From<&'a Provenance> for JsonString[src]

impl From<Provenance> for JsonString[src]

impl Clone for Provenance[src]

impl Eq for Provenance[src]

impl PartialEq<Provenance> for Provenance[src]

impl Debug for Provenance[src]

impl<'a> TryFrom<&'a JsonString> for Provenance[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for Provenance[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl Hash for Provenance[src]

impl Serialize for Provenance[src]

impl<'de> Deserialize<'de> for Provenance[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,