Module: Bitcoin::SigHashGenerator
- Defined in:
- lib/bitcoin/sighash_generator.rb
Defined Under Namespace
Classes: LegacySigHashGenerator, SchnorrSigHashGenerator, SegwitSigHashGenerator
Class Method Summary collapse
Class Method Details
.load(sig_ver) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/bitcoin/sighash_generator.rb', line 5 def self.load(sig_ver) case sig_ver when :base LegacySigHashGenerator.new when :witness_v0 SegwitSigHashGenerator.new when :taproot, :tapscript SchnorrSigHashGenerator.new else raise ArgumentError, "Unsupported sig version specified. #{sig_ver}" end end |