vialabs-stellar-common 0.1.10

Common interfaces, types, and utilities for Stellar contracts in the VIA cross-chain messaging system
Documentation
/// # POS Handler Interface
///
/// This module provides the interface for the POS handler contract.
use soroban_sdk::{contractclient, BytesN, Env, Vec};

#[contractclient(name = "PosHandlerClient")]
pub trait PosHandlerInterface {
  /// Validates message signatures from authorized validators
  ///
  /// This function validates the provided signatures to ensure the message was properly
  /// signed by authorized validators. The current implementation is a placeholder that
  /// always returns true.
  ///
  /// # Arguments
  ///
  /// * `env` - The Soroban environment
  /// * `signatures` - Vector of 64-byte signatures to validate
  ///
  /// # Returns
  ///
  /// Returns `true` if the signatures are valid, `false` otherwise
  fn message_validate(env: &Env, signatures: Vec<BytesN<64>>) -> bool;
}