pub struct Cert {
pub role: Role,
pub owner: PublicKey,
pub delegate: PublicKey,
pub signature: Option<Signature>,
}Fields§
§role: Role§owner: PublicKey§delegate: PublicKey§signature: Option<Signature>Implementations§
Source§impl Cert
impl Cert
pub fn from(c: &InternalCert) -> Result<Self>
pub fn from_bytes(bs: &[u8]) -> Result<Self>
pub fn to_bytes(&self) -> Result<Vec<u8>>
pub fn build( owner: PublicKey, delegate: PublicKey, role: Role, ) -> Result<Vec<u8>>
pub fn complete(bs: &[u8], signature: &[u8]) -> Result<Self>
pub fn new( owner: PublicKey, delegate: PublicKey, role: Role, signature: Signature, ) -> Self
pub fn certify(owner: &Signer, delegate: PublicKey, role: Role) -> Result<Self>
pub fn verify(&self) -> Result<()>
pub fn stringify(&self) -> Result<String>
pub fn stringify_hex(&self) -> Result<String>
pub fn parse(str: &str) -> Result<Self>
pub fn verify_str(str: &str) -> Result<Self>
pub fn stringify_owner(&self) -> Result<String>
pub fn stringify_delegate(&self) -> Result<String>
pub fn to_json(&self) -> Result<String>
pub fn owner_address(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cert
impl RefUnwindSafe for Cert
impl Send for Cert
impl Sync for Cert
impl Unpin for Cert
impl UnwindSafe for Cert
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