Class: BeaconCohortSubscribeMessage ​
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/keygen/subscribe.ts:18
Represents a message for subscribing to a cohort. This message is sent by a coordinator to a participant to indicate acceptance in the cohort. BeaconCohortSubscribeMessage
Extends ​
Constructors ​
Constructor ​
new BeaconCohortSubscribeMessage(
__namedParameters):BeaconCohortSubscribeMessage
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/keygen/subscribe.ts:19
Parameters ​
__namedParameters ​
Returns ​
BeaconCohortSubscribeMessage
Overrides ​
Properties ​
body? ​
optionalbody:BaseBody
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/base.ts:32
Inherited from ​
from ​
from:
string
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/base.ts:31
Inherited from ​
to? ​
optionalto:string
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/base.ts:30
Inherited from ​
type ​
type:
string
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/base.ts:29
Inherited from ​
Methods ​
json() ​
json():
Base
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/base.ts:54
Converts a BaseMessage to a JSON object.
Returns ​
The JSON representation of the BaseMessage.
Inherited from ​
fromJSON() ​
staticfromJSON(data):BeaconCohortSubscribeMessage
Defined in: packages/method/src/core/beacon/aggregation/cohort/messages/keygen/subscribe.ts:28
Initializes a BeaconCohortSubscribeMessage from a possible CohortSubscribeMessage object.
Parameters ​
data ​
any
The Subscribe object to initialize the SubscribeMessage.
Returns ​
BeaconCohortSubscribeMessage
The serialized SubscribeMessage.