pub struct DetachedCosignature {
pub cosignature: Cosignature,
pub parent_hash: Hash256,
}Expand description
アグリゲートから切り離して受け渡す連署。catbuffer の DetachedCosignature。
ボンデッドのアグリゲートに、あとから連署を集めるときに使う。
Fields§
§cosignature: Cosignature§parent_hash: Hash256連署したアグリゲートのハッシュ
Implementations§
Source§impl DetachedCosignature
impl DetachedCosignature
Sourcepub fn sign(private_key: &PrivateKey, parent_hash: &Hash256) -> Self
pub fn sign(private_key: &PrivateKey, parent_hash: &Hash256) -> Self
アグリゲートのハッシュに連署する。
pub fn to_bytes(&self) -> [u8; 136]
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
バイト列から読む。アグリゲートの中の連署と同じく、バージョンは0でなければならない。
Trait Implementations§
Source§impl Clone for DetachedCosignature
impl Clone for DetachedCosignature
Source§fn clone(&self) -> DetachedCosignature
fn clone(&self) -> DetachedCosignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DetachedCosignature
Source§impl Debug for DetachedCosignature
impl Debug for DetachedCosignature
impl Eq for DetachedCosignature
Source§impl PartialEq for DetachedCosignature
impl PartialEq for DetachedCosignature
impl StructuralPartialEq for DetachedCosignature
Auto Trait Implementations§
impl Freeze for DetachedCosignature
impl RefUnwindSafe for DetachedCosignature
impl Send for DetachedCosignature
impl Sync for DetachedCosignature
impl Unpin for DetachedCosignature
impl UnsafeUnpin for DetachedCosignature
impl UnwindSafe for DetachedCosignature
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