Skip to main content

Crate signer

Crate signer 

Source
Expand description

Multi-chain transaction signer (umbrella).

§Layers

L0  signer-primitives   curves + SignDigest / SignOutput
L1  signer-{chain}      protocol preimage + wire (this crate re-exports)
L2  signer-cli          ops UX
──  kobe                HD only — use feature `kobe` + FromDerived

Schemes: secp256k1 ECDSA, BIP-340 Schnorr, Ed25519. Framing (EIP-191, BIP-137, …) stays in chain crates — this is not a “hash-only” strip.

§Usage

use signer::{SignMessage, evm};

let s = evm::Signer::from_hex("0x...").unwrap();
let sig = s.sign_message(b"hello").unwrap();

Re-exports§

pub use signer_aptos as aptos;
pub use signer_arweave as arweave;
pub use signer_btc as btc;
pub use signer_casper as casper;
pub use signer_cosmos as cosmos;
pub use signer_evm as evm;
pub use signer_fil as fil;
pub use signer_nostr as nostr;
pub use signer_primitives as primitives;
pub use signer_spark as spark;
pub use signer_sui as sui;
pub use signer_svm as svm;
pub use signer_ton as ton;
pub use signer_tron as tron;
pub use signer_xrpl as xrpl;

Modules§

prelude
Prelude that imports every capability trait plus SignOutput and SignError in one glob.
v_encoding
Canonical recovery-id / message-header offsets for secp256k1 ECDSA.

Structs§

Digest32
32-byte digest, event id, or fixed-length message blob.
SecretKey32
Owned 32-byte secret key material (zeroized on drop).

Enums§

SignError
Errors from signing operations.
SignOutput
Signature output across every scheme the workspace supports.
SignatureScheme
Wire-level signature scheme discriminant.

Traits§

EncodeSignedTransaction
Optional: assemble signed wire bytes from (unsigned_tx, SignOutput).
ExtractSignableBytes
Optional: extract the signable portion from a fully serialized transaction.
FromDerived
Construct a signer from a kobe-derived account.
FromSecretKey
Construct a signer from raw secret-key material.
SignDigest
Mandatory 32-byte signing surface for every chain Signer.
SignMessage
Opt-in capability: sign an off-chain message with the chain’s convention.