Class: BSV::Transaction::Beef::TxidOnlyEntry
- Defined in:
- lib/bsv/transaction/beef.rb
Overview
A BEEF entry containing only a transaction ID (no raw data).
Instance Attribute Summary collapse
-
#known_wtxid ⇒ String
readonly
32-byte wire-order wtxid.
Instance Method Summary collapse
-
#format_flag ⇒ Integer
FORMAT_TXID_ONLY wire-protocol flag.
-
#initialize(known_wtxid:) ⇒ TxidOnlyEntry
constructor
A new instance of TxidOnlyEntry.
-
#wtxid ⇒ String
The stored wire-order wtxid.
Methods inherited from BeefTx
Constructor Details
#initialize(known_wtxid:) ⇒ TxidOnlyEntry
Returns a new instance of TxidOnlyEntry.
138 139 140 141 142 |
# File 'lib/bsv/transaction/beef.rb', line 138 def initialize(known_wtxid:) BSV::Primitives::Hex.validate_wtxid!(known_wtxid, name: 'known_wtxid') super() @known_wtxid = known_wtxid end |
Instance Attribute Details
#known_wtxid ⇒ String (readonly)
Returns 32-byte wire-order wtxid.
134 135 136 |
# File 'lib/bsv/transaction/beef.rb', line 134 def known_wtxid @known_wtxid end |
Instance Method Details
#format_flag ⇒ Integer
Returns FORMAT_TXID_ONLY wire-protocol flag.
150 151 152 |
# File 'lib/bsv/transaction/beef.rb', line 150 def format_flag FORMAT_TXID_ONLY end |
#wtxid ⇒ String
Returns the stored wire-order wtxid.
145 146 147 |
# File 'lib/bsv/transaction/beef.rb', line 145 def wtxid @known_wtxid end |