P2PMessageReceived class

An inbound peer-to-peer message the app received on its own transport and hands to the library (bead libspiffy-a2v3).

libspiffy owns no transport: the app carries bytes between peers and describes what arrived as (fromPeerId, messageType, payload). The coordinator routes it by messageType — proof_request and proof_response to the merkle-proof protocol (ProofP2PAdapter), everything else to the payment-channel protocol (ChannelP2PAdapter).

ChannelP2PReceived is the same thing under its original, channel-named class; it is kept so existing apps compile unchanged, and it is routed by messageType exactly like this one.

Implementers

Constructors

P2PMessageReceived({required String fromPeerId, required String messageType, required Map<String, dynamic> payload})

Properties

correlationId → String
The correlation ID of the message.
no setter
fromPeerId → String
The peer that sent it, as the app names peers. The proof protocol compares this to the counterparty marker recorded on a transaction, so it must be drawn from the same identity scheme the app puts in BitcoinTransaction.counterpartyMarker.
final
hashCode → int
The hash code for this object.
no setterinherited
messageType → String
final
metadata → Map<String, dynamic>
The metadata of the message.
no setter
payload → Map<String, dynamic>
final
replyTo → ActorRef?
The actor to reply to.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
The timestamp of the message.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited