Constructors
constructor
- new Group(options: { cardManager: CardManager; groupManager: GroupManager; initiator: string; privateKeyLoader: PrivateKeyLoader; tickets: Ticket[] }): Group
-
Parameters
-
options: { cardManager: CardManager; groupManager: GroupManager; initiator: string; privateKeyLoader: PrivateKeyLoader; tickets: Ticket[] }
-
cardManager: CardManager
-
-
initiator: string
-
privateKeyLoader: PrivateKeyLoader
-
Properties
initiator
initiator: string
participants
participants: string[]
selfIdentity
selfIdentity: string
Methods
add
- add(participantCard: ICard): Promise<void>
- add(participantCards: FindUsersResult): Promise<void>
-
Parameters
Returns Promise<void>
-
Parameters
Returns Promise<void>
decrypt
- decrypt(encryptedData: Data, senderCard: ICard, encryptedAt?: Date | number): Promise<NodeBuffer | string>
-
Parameters
-
encryptedData: Data
-
senderCard: ICard
-
Optional encryptedAt: Date | number
Returns Promise<NodeBuffer | string>
encrypt
- encrypt(data: Data): Promise<string | Buffer>
-
Parameters
Returns Promise<string | Buffer>
reAdd
- reAdd(participantCard: ICard): Promise<void>
-
Parameters
Returns Promise<void>
remove
- remove(participantCard: ICard): Promise<void>
- remove(participantCards: FindUsersResult): Promise<void>
-
Parameters
Returns Promise<void>
-
Parameters
Returns Promise<void>