pub trait ScriptSigner {
    fn match_args(&self, args: &[u8]) -> bool;
    fn sign_tx(
        &self,
        tx: &TransactionView,
        script_group: &ScriptGroup
    ) -> Result<TransactionView, ScriptSignError>; }
Expand description

Script signer logic:

  • Generate message to sign
  • Sign the message by wallet
  • Put the signature into tx.witnesses

Required Methods§

Add signature information to witnesses

Implementors§