Reputation: 74
How to share the transaction between multiple participants in the network? say for an example A,B,C and D. where we want to share the transaction to all participants where A and D don't have option to edit the transaction further.
Upvotes: 0
Views: 1253
Reputation: 922
There's two things you can do:
Example:
data class Example(
val A: AbstractParty,
val D: AbstractParty,
override val participants: List<AbstractParty>,
override val linearId: UniqueIdentifier = UniqueIdentifier()
) : LinearState {
constructor (
A: AbstractParty,
B: AbstractParty,
C: AbstractParty,
D: AbstractParty
) : this(A, D, listOf(A, B, C ,D))
}
Option two is probably the better option. Cheers!
Upvotes: 1