forked from brl/citadel-tools
method to clear signature field
This commit is contained in:
parent
0299d2814f
commit
c13fb5fb61
@ -226,6 +226,11 @@ impl ImageHeader {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn clear_signature(&self) -> Result<()> {
|
||||||
|
let zeros = vec![0u8; SIGNATURE_LENGTH];
|
||||||
|
self.set_signature(&zeros)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn public_key(&self) -> Result<Option<PublicKey>> {
|
pub fn public_key(&self) -> Result<Option<PublicKey>> {
|
||||||
let metainfo = self.metainfo()?;
|
let metainfo = self.metainfo()?;
|
||||||
public_key_for_channel(metainfo.channel())
|
public_key_for_channel(metainfo.channel())
|
||||||
|
Loading…
Reference in New Issue
Block a user