Type Alias chain_impl_mockchain::transaction::AuthenticatedTransaction
source · pub type AuthenticatedTransaction<P> = Transaction<P>;
Aliased Type§
struct AuthenticatedTransaction<P> {
pub(super) data: Box<[u8], Global>,
pub(super) tstruct: TransactionStruct,
pub(super) phantom: PhantomData<P>,
}
Fields§
§data: Box<[u8], Global>
§tstruct: TransactionStruct
§phantom: PhantomData<P>
Implementations§
source§impl<P> Transaction<P>
impl<P> Transaction<P>
pub fn as_slice(&self) -> TransactionSlice<'_, P>
pub fn hash(&self) -> TransactionSignDataHash
pub fn nb_inputs(&self) -> u8
sourcepub fn block0_payload(payload: &P, payload_auth: &P::Auth) -> Transaction<P>where
P: Payload,
pub fn block0_payload(payload: &P, payload_auth: &P::Auth) -> Transaction<P>where P: Payload,
Create a specific block0 payload transaction