pub struct UnsignedArtifact {
pub version: ArtifactVersion,
pub flags: u8,
pub artifact_id: ArtifactId,
pub timestamp: DateTime<Utc>,
pub intent: Intent,
pub author_pubkey: [u8; 32],
pub note_hash: [u8; 32],
}Expand description
Unsigned artifact (before signing)
Fields§
§version: ArtifactVersion§flags: u8§artifact_id: ArtifactId§timestamp: DateTime<Utc>§intent: Intent§note_hash: [u8; 32]Implementations§
Source§impl UnsignedArtifact
impl UnsignedArtifact
Get bytes to sign (author signature)
Attach author signature and create complete artifact
Sourcepub fn with_signature(self, signature: [u8; 64]) -> Artifact
pub fn with_signature(self, signature: [u8; 64]) -> Artifact
Attach signature (legacy compatibility)
Auto Trait Implementations§
impl Freeze for UnsignedArtifact
impl RefUnwindSafe for UnsignedArtifact
impl Send for UnsignedArtifact
impl Sync for UnsignedArtifact
impl Unpin for UnsignedArtifact
impl UnsafeUnpin for UnsignedArtifact
impl UnwindSafe for UnsignedArtifact
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