Module external_types

Module external_types 

Source
Expand description

FFI-compatible types for the ExternalSigner trait

These types are designed to be simpler and FFI-safe, using basic types like Vec and String instead of complex Rust types.

Structs§

EcdsaSignatureBytes
FFI-safe representation of an ECDSA signature (64 bytes)
ExternalAggregateFrostRequest
FFI-safe representation of spark_wallet::AggregateFrostRequest
ExternalEncryptedPrivateKey
FFI-safe representation of spark_wallet::EncryptedPrivateKey
ExternalFrostCommitments
FFI-safe representation of spark_wallet::FrostSigningCommitmentsWithNonces
ExternalFrostSignature
FFI-safe representation of frost_secp256k1_tr::Signature
ExternalFrostSignatureShare
FFI-safe representation of frost_secp256k1_tr::round2::SignatureShare
ExternalIdentifier
FFI-safe representation of frost_secp256k1_tr::Identifier
ExternalScalar
FFI-safe representation of k256::Scalar (32 bytes)
ExternalSecretShare
FFI-safe representation of spark_wallet::SecretShare
ExternalSignFrostRequest
FFI-safe representation of spark_wallet::SignFrostRequest
ExternalSigningCommitments
FFI-safe representation of frost_secp256k1_tr::round1::SigningCommitments
ExternalTreeNodeId
FFI-safe representation of spark_wallet::TreeNodeId
ExternalVerifiableSecretShare
FFI-safe representation of spark_wallet::VerifiableSecretShare
IdentifierCommitmentPair
FFI-safe wrapper for (Identifier, SigningCommitments) pair
IdentifierPublicKeyPair
FFI-safe wrapper for (Identifier, PublicKey) pair
IdentifierSignaturePair
FFI-safe wrapper for (Identifier, SignatureShare) pair
PrivateKeyBytes
FFI-safe representation of a private key (32 bytes)
PublicKeyBytes
FFI-safe representation of a secp256k1 public key (33 bytes compressed)
RecoverableEcdsaSignatureBytes
FFI-safe representation of a recoverable ECDSA signature (65 bytes: 1 recovery byte + 64 signature bytes)
SchnorrSignatureBytes
FFI-safe representation of a Schnorr signature (64 bytes)

Enums§

ExternalPrivateKeySource
FFI-safe representation of spark_wallet::PrivateKeySource
ExternalSecretToSplit
FFI-safe representation of spark_wallet::SecretToSplit

Functions§

derivation_path_to_string
Helper functions for DerivationPath string conversion
string_to_derivation_path