- Companion:
- class
- Source:
- Block.scala
Type members
Inherited types
The names of the product elements
The names of the product elements
- Inherited from:
- Mirror
- Source:
- Mirror.scala
Value members
Concrete methods
- Value parameters:
- bits
difficulty target
- Returns:
the amount of work represented by this difficulty target, as displayed by bitcoin core
- Source:
- Block.scala
Proof of work: hash(header) <= target difficulty
Proof of work: hash(header) <= target difficulty
- Value parameters:
- header
block header
- Returns:
true if the input block header validates its expected proof of work
- Source:
- Block.scala
Inherited methods
read a message from a hex string
read a message from a hex string
- Value parameters:
- in
message binary data in hex format
- Returns:
a deserialized message of type T
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala
read a message from a byte array
read a message from a byte array
- Value parameters:
- in
serialized message
- Returns:
a deserialized message
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala
write a message to a byte array
write a message to a byte array
- Value parameters:
- t
message
- Returns:
a serialized message
- Inherited from:
- BtcSerializer
- Source:
- Protocol.scala