pub type SignedActionHashed = SignedHashed<Action>;
Expand description

The hashed action and the signature that signed it

Aliased Type§

struct SignedActionHashed {
    pub hashed: HoloHashed<Action>,
    pub signature: Signature,
}

Fields§

§hashed: HoloHashed<Action>

The hashed content.

§signature: Signature

The signature of the content.

Implementations§

source§

impl SignedActionHashed

source

pub fn action_address(&self) -> &ActionHash

Access the Action Hash.

source

pub fn action(&self) -> &Action

Access the Action portion.

source

pub fn raw_from_same_hash<T>(other: SignedHashed<T>) -> Self
where T: Into<Action> + HashableContent<HashType = Action>,

Create a new SignedActionHashed from a type that implements into Action and has the same hash bytes. The caller must make sure the hash does not change.

Trait Implementations§

source§

impl AsRef<SignedHashed<Action>> for SignedActionHashed

source§

fn as_ref(&self) -> &SignedActionHashed

Converts this type into a shared reference of the (usually inferred) input type.