pub struct UnsignedBody {
pub abi_version: AbiVersion,
pub payload: Cell,
pub hash: HashBytes,
pub expire_at: u32,
}Expand description
Unsigned external message payload.
Fields§
§abi_version: AbiVersionABI version used during encoding.
payload: CellUnsigned payload.
hash: HashBytesA hash to sign.
expire_at: u32Message expiration timestamp (in seconds).
Implementations§
Source§impl UnsignedBody
impl UnsignedBody
Sourcepub fn with_dst(self, dst: StdAddr) -> UnsignedExternalMessage
pub fn with_dst(self, dst: StdAddr) -> UnsignedExternalMessage
Extends message with the specified destination address and returns an unsigned external message.
Sourcepub fn sign(self, key: &SigningKey, signature_id: Option<i32>) -> Result<Cell>
pub fn sign(self, key: &SigningKey, signature_id: Option<i32>) -> Result<Cell>
Signs the payload and returns a body cell with filled signature.
Sourcepub fn with_signature(self, signature: &Signature) -> Result<Cell>
pub fn with_signature(self, signature: &Signature) -> Result<Cell>
Returns a body cell with filled signature.
Sourcepub fn with_fake_signature(self) -> Result<Cell>
pub fn with_fake_signature(self) -> Result<Cell>
Returns a body cell with signature filled with zero bytes.
Sourcepub fn without_signature(self) -> Result<Cell>
pub fn without_signature(self) -> Result<Cell>
Returns a body cell with empty signature.
Auto Trait Implementations§
impl Freeze for UnsignedBody
impl !RefUnwindSafe for UnsignedBody
impl Send for UnsignedBody
impl Sync for UnsignedBody
impl Unpin for UnsignedBody
impl !UnwindSafe for UnsignedBody
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
Mutably borrows from an owned value. Read more