Module: BSV::Wallet::Interface::ProofStore

Included in:
LocalProofStore
Defined in:
lib/bsv/wallet/interface/proof_store.rb

Overview

Duck-typed interface for merkle proof persistence.

Include this module in proof store implementations and override all methods. The default implementations raise NotImplementedError.

Instance Method Summary collapse

Instance Method Details

#resolve_proof(_txid) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/bsv/wallet/interface/proof_store.rb', line 15

def resolve_proof(_txid)
  raise NotImplementedError, "#{self.class}#resolve_proof not implemented"
end

#store_proof(_txid, _merkle_path) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/bsv/wallet/interface/proof_store.rb', line 11

def store_proof(_txid, _merkle_path)
  raise NotImplementedError, "#{self.class}#store_proof not implemented"
end