weave-identity · signature
Source declarations, signatures and documentation for signature.
Source: sigil/weave/adapters/weave-identity/src/signature.rs. SHA-256: b94094f4ea5eb7759425fed9b8b8bc534c9864174c96db0f7338bdee0b5dfea7.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
signature::Signature
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Signature {
}Source line: 7.
signature::Signature::new
Create a new signature from bytes
pub fn new(bytes: Vec<u8>) -> Self;Source line: 13.
signature::Signature::as_bytes
Get the raw signature bytes
pub fn as_bytes(&self) -> &[u8];Source line: 18.
signature::Signature::to_bytes
Get the raw bytes as a vector
pub fn to_bytes(&self) -> Vec<u8>;Source line: 23.
signature::Signature::from_ed25519
Create from Ed25519 signature
pub fn from_ed25519(signature: &ed25519_dalek::Signature) -> Self;Source line: 28.
signature::Signature::to_ed25519
Convert to Ed25519 signature
pub fn to_ed25519(&self) -> Result<ed25519_dalek::Signature>;Source line: 33.
signature::Signature::len
Get the length of the signature
pub fn len(&self) -> usize;Source line: 49.
signature::Signature::is_empty
Check if the signature is empty
pub fn is_empty(&self) -> bool;Source line: 54.