pub struct SignDocDirectAux {
pub body_bytes: Vec<u8>,
pub public_key: Option<Any>,
pub chain_id: String,
pub account_number: u64,
pub sequence: u64,
pub tip: Option<Tip>,
}
Expand description
SignDocDirectAux is the type used for generating sign bytes for SIGN_MODE_DIRECT_AUX.
Since: cosmos-sdk 0.46
Fields§
§body_bytes: Vec<u8>
body_bytes is protobuf serialization of a TxBody that matches the representation in TxRaw.
public_key: Option<Any>
public_key is the public key of the signing account.
chain_id: String
chain_id is the identifier of the chain this transaction targets. It prevents signed transactions from being used on another chain by an attacker.
account_number: u64
account_number is the account number of the account in state.
sequence: u64
sequence is the sequence number of the signing account.
tip: Option<Tip>
Tip is the optional tip used for transactions fees paid in another denom. It should be left empty if the signer is not the tipper for this transaction.
This field is ignored if the chain didn’t enable tips, i.e. didn’t add the
TipDecorator
in its posthandler.
Trait Implementations§
source§impl Clone for SignDocDirectAux
impl Clone for SignDocDirectAux
source§fn clone(&self) -> SignDocDirectAux
fn clone(&self) -> SignDocDirectAux
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignDocDirectAux
impl Debug for SignDocDirectAux
source§impl Default for SignDocDirectAux
impl Default for SignDocDirectAux
source§impl Message for SignDocDirectAux
impl Message for SignDocDirectAux
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq for SignDocDirectAux
impl PartialEq for SignDocDirectAux
source§fn eq(&self, other: &SignDocDirectAux) -> bool
fn eq(&self, other: &SignDocDirectAux) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SignDocDirectAux
Auto Trait Implementations§
impl RefUnwindSafe for SignDocDirectAux
impl Send for SignDocDirectAux
impl Sync for SignDocDirectAux
impl Unpin for SignDocDirectAux
impl UnwindSafe for SignDocDirectAux
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request