RefundCountersignedEvent class
Server has signed the refund transaction.
On the server side it records the server's signature. On the client side it is journaled only once that signature verified, and carries the fully signed refund (signedRefundTxHex: template plus both signatures, checked by the script interpreter against the funding output) that lets the client recover its funds after the lockTime (libspiffy-b83).
On the server side it also journals the refund it signed and the funding transaction that refund spends (libspiffy-fsy): the channel may only be opened for that funding transaction, and the state survives a restart.
- Inheritance
-
- Object
- ChannelEvent
- RefundCountersignedEvent
Constructors
-
RefundCountersignedEvent({required String channelId, required String serverSignatureHex, String? signedRefundTxHex, String? refundTxHex, String? fundingTxId, int? fundingOutputIndex, String? fundingTxHex, String? eventId, DateTime? timestamp, int? version, Map<
String, dynamic> ? metadata}) -
RefundCountersignedEvent.fromMap(Map<
String, dynamic> map) -
factory
Properties
- aggregateId → String
-
The ID of the aggregate this event belongs to
no setterinherited
- aggregateType → String
-
The type of aggregate this event belongs to
no setterinherited
- channelId → String
-
finalinherited
- correlationId → String
-
The correlation ID of the message.
no setterinherited
- eventId → String
-
Unique identifier for this event
Used for deduplication and correlation
no setterinherited
- fundingOutputIndex → int?
-
final
- fundingTxHex → String?
-
final
- fundingTxId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
Additional metadata for the event
Can include correlation IDs, causation IDs, user context, etc.
no setterinherited
-
persistableMetadata
→ Map<
String, dynamic> -
metadataas it is persisted: transientActorRefentries removed.no setterinherited - refundTxHex → String?
-
Server side (libspiffy-fsy): the refund template the server signed and
the funding transaction it spends. Null on the client side and in rows
written before they were journaled.
final
- replyTo → ActorRef?
-
The actor to reply to, if a live
ActorRefwas placed inmetadata['replyTo'].no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverSignatureHex → String
-
final
- signedRefundTxHex → String?
-
The fully signed refund transaction (client side). Null on the server
side and in rows written before libspiffy-b83.
final
- timestamp → DateTime
-
Timestamp when the event occurred
no setterinherited
- typeName → String
-
Stable identity of this event type in storage.
no setter
- version → int
-
Version/sequence number of this event within its aggregate
Used for ordering and optimistic concurrency control
no setterinherited
Methods
-
getChannelEventData(
) → Map< String, dynamic> -
Override to provide event-specific data for serialization
override
-
getEventData(
) → Map< String, dynamic> -
Get event-specific data for serialization
Override in subclasses to provide event data
inherited
-
getValidationErrors(
) → List< String> -
Get validation errors
Override in subclasses to provide specific error messages
inherited
-
isValid(
) → bool -
Validate the event
Override in subclasses for custom validation
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCbor(
) → List< int> -
Serialize event to CBOR bytes
inherited
-
toMap(
) → Map< String, dynamic> -
Convert event to a map for serialization
Override in subclasses to include event-specific data
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- stableTypeName → const String
- Journal identifier of this event type. Stored with every event and independent of the class name; never change it (audit 2026-09-14 M8).