Class: Coloredcoins::MultisigTx
- Inherits:
-
Transaction
- Object
- Transaction
- Coloredcoins::MultisigTx
- Defined in:
- lib/coloredcoins/multisig_tx.rb
Instance Attribute Summary collapse
-
#m ⇒ Object
Returns the value of attribute m.
-
#multisig ⇒ Object
Returns the value of attribute multisig.
-
#pub_keys ⇒ Object
Returns the value of attribute pub_keys.
Attributes inherited from Transaction
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Transaction
#broadcast, build_key, build_sigs, #initialize, #new_tx, #to_hex
Constructor Details
This class inherits a constructor from Coloredcoins::Transaction
Instance Attribute Details
#m ⇒ Object
Returns the value of attribute m.
3 4 5 |
# File 'lib/coloredcoins/multisig_tx.rb', line 3 def m @m end |
#multisig ⇒ Object
Returns the value of attribute multisig.
3 4 5 |
# File 'lib/coloredcoins/multisig_tx.rb', line 3 def multisig @multisig end |
#pub_keys ⇒ Object
Returns the value of attribute pub_keys.
3 4 5 |
# File 'lib/coloredcoins/multisig_tx.rb', line 3 def pub_keys @pub_keys end |
Class Method Details
.build(tx_hex) {|transaction| ... } ⇒ Object
7 8 9 10 11 |
# File 'lib/coloredcoins/multisig_tx.rb', line 7 def self.build(tx_hex) transaction = MultisigTx.new(tx_hex) yield transaction transaction end |
Instance Method Details
#redeem_script ⇒ Object
23 24 25 |
# File 'lib/coloredcoins/multisig_tx.rb', line 23 def redeem_script multisig.redeem_script end |
#redeem_script=(script) ⇒ Object
27 28 29 |
# File 'lib/coloredcoins/multisig_tx.rb', line 27 def redeem_script=(script) multisig.redeem_script = script end |
#sign(key) ⇒ Object
13 14 15 16 17 |
# File 'lib/coloredcoins/multisig_tx.rb', line 13 def sign(key) check multisig.sign(tx, key) true end |