Class: Runar::SDK::Signer
- Inherits:
-
Object
- Object
- Runar::SDK::Signer
- Defined in:
- lib/runar/sdk/signer.rb
Overview
Abstract base class for signers.
Subclasses must implement all abstract methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#get_address ⇒ Object
Return the BSV address string.
-
#get_public_key ⇒ Object
Return the hex-encoded compressed public key (66 hex chars).
-
#sign(_tx_hex, _input_index, _subscript, _satoshis, _sighash_type = nil) ⇒ String
Sign a transaction input and return the DER-encoded signature with the sighash byte appended, hex-encoded.
Instance Method Details
#get_address ⇒ Object
Return the BSV address string.
20 21 22 |
# File 'lib/runar/sdk/signer.rb', line 20 def get_address raise NotImplementedError, "#{self.class}#get_address is not implemented" end |
#get_public_key ⇒ Object
Return the hex-encoded compressed public key (66 hex chars).
15 16 17 |
# File 'lib/runar/sdk/signer.rb', line 15 def get_public_key raise NotImplementedError, "#{self.class}#get_public_key is not implemented" end |
#sign(_tx_hex, _input_index, _subscript, _satoshis, _sighash_type = nil) ⇒ String
Sign a transaction input and return the DER-encoded signature with the sighash byte appended, hex-encoded.
33 34 35 |
# File 'lib/runar/sdk/signer.rb', line 33 def sign(_tx_hex, _input_index, _subscript, _satoshis, _sighash_type = nil) raise NotImplementedError, "#{self.class}#sign is not implemented" end |