Skip to content

Commit

Permalink
feat(mercury): Add extra method invitation2Connect (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro committed Jan 18, 2023
1 parent 93bdf9d commit ea3d819
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ object Invitation {
given Encoder[Invitation] = deriveEncoder[Invitation]
given Decoder[Invitation] = deriveDecoder[Invitation]

// Utils methods
def invitation2Connect(from: DidId): Invitation = {
Invitation(
from = from,
body = Invitation.Body(goal_code = "connect", goal = "Establish a trust connection between two peers", Nil)
)
}
}

0 comments on commit ea3d819

Please sign in to comment.