Companion for ProposalTxSet, providing canonicalization and wire encoding.
Attributes
- Companion
- class
- Source
- Artifacts.scala
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProposalTxSet.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Returns a canonically ordered copy of the given transaction set.
Deduplicates and sorts transaction IDs into canonical order.
Returns the first transaction ID that is not fixed-width wire compatible (not 32 bytes).
Returns the first transaction ID that is not fixed-width wire compatible (not 32 bytes).
Attributes
- Source
- Artifacts.scala
Creates a canonical proposal tx set by hashing each transaction reference.
Creates a canonical proposal tx set by hashing each transaction reference.
Type parameters
- TxRef
-
the transaction reference type, which must be hashable
Value parameters
- txs
-
the transactions to include
Attributes
- Returns
-
a canonically ordered proposal tx set
- Source
- Artifacts.scala
Checks whether the transaction set is already in canonical order with no duplicates.
Checks whether the transaction set is already in canonical order with no duplicates.
Attributes
- Source
- Artifacts.scala
Concrete fields
An empty proposal transaction set.