pub trait Signable<W> {
// Required method
fn write(&self, writer: &mut W);
}Expand description
Something that we know how to hash and sign.
Required Methods§
Implementors§
impl<T, W> Signable<W> for Twhere
T: BcsSignable,
W: Write,
impl<W> Signable<W> for MoveAuthenticatorwhere
W: Write,
Manual Signable impl for MoveAuthenticator.
serde_name::trace_name returns None for types that carry
#[serde(flatten)], so the blanket impl via BcsSignable panics.
We hardcode the tag and serialise via self.inner — the same
representation that AsRef<[u8]> already uses.