ReferenceRust referencesigil-wallet-core
sigil-wallet-core · crate
Source declarations, signatures and documentation for crate.
Source: sigil/node/sigil-wallet-core/src/lib.rs. SHA-256: 9bd22529c7bb78489b72a8e79e464859f8b3cbba04dfeeed6a48b58eb5f8359c.
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.
::WalletCoreError
#[derive(Debug, thiserror::Error)]
pub enum WalletCoreError {
#[error("transaction error: {0}")]
Transaction(String),
#[error("amount error: {0}")]
Amount(String),
#[error("identity error: {0}")]
Identity(String),
#[error("hex error: {0}")]
Hex(#[from] hex::FromHexError),
}Source line: 10.
::WalletCoreResult
pub type WalletCoreResult<T> = Result<T, WalletCoreError>;Source line: 21.
::transaction_signing_bytes
pub fn transaction_signing_bytes(tx: &Transaction) -> WalletCoreResult<Vec<u8>>;Source line: 23.
::transaction_digest_hex
pub fn transaction_digest_hex(tx: &Transaction) -> WalletCoreResult<String>;Source line: 28.
::sign_transaction
pub fn sign_transaction(
tx: Transaction,
signing_key: &SigningKey,
) -> WalletCoreResult<SignedTransaction>;Source line: 33.
::sign_transaction_with_key_hex
pub fn sign_transaction_with_key_hex(
tx: Transaction,
signing_key_hex: &str,
) -> WalletCoreResult<SignedTransaction>;Source line: 41.
::verify_signed_transaction
pub fn verify_signed_transaction(tx: &SignedTransaction) -> WalletCoreResult<()>;Source line: 53.
::parse_display_amount_to_base_units
pub fn parse_display_amount_to_base_units(
input: &str,
base_units_per_display: u128,
) -> WalletCoreResult<u128>;Source line: 58.
::format_base_units
pub fn format_base_units(amount: u128, base_units_per_display: u128) -> WalletCoreResult<String>;Source line: 122.
::address_hex_from_did
pub fn address_hex_from_did(did: &str) -> WalletCoreResult<String>;Source line: 136.
::PublicIdentityBundle
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct PublicIdentityBundle {
pub username: Option<String>,
pub root_did: String,
pub identity_kind: String,
pub public_key_hex: String,
pub recovery_policy: String,
pub signed_genesis_claim: Option<String>
}Source line: 143.
::PublicIdentityBundle::validate_public_only
pub fn validate_public_only(&self) -> WalletCoreResult<()>;Source line: 153.