pamoja for TypeScript - v0.1.17
    Preparing search index...

    Variable RoleConst

    Role: { Initiator: Role; Responder: Role }

    Which side of a session a device is on.

    The two devices must choose opposite roles: the role decides the order the public keys are mixed in and which direction each side tags its messages with, so a session where both sides claim the same role opens nothing.

    Provided as a runtime object plus a matching string-union type.

    Type Declaration

    • ReadonlyInitiator: Role

      The device that opens the session.

    • ReadonlyResponder: Role

      The device that answers.