flexiblePrivacyGroup

Methods

(inner) addTo(options) → {Promise.<T>}

Source:

Add to an existing on-chain privacy group

Parameters:
Name Type Description
options Object

Map to add the members

Properties
Name Type Description
privacyGroupId string

Privacy group ID to add to

privateKey string

Private Key used to sign transaction with

enclaveKey string

Enclave public key

participants Array.<string>

list of enclaveKey to pass to the contract to add to the group

Returns:
Type
Promise.<T>

(inner) create(options) → {Promise.<T>}

Source:

Create an on chain privacy group

Parameters:
Name Type Description
options Object

Map to add the members

Properties
Name Type Description
privacyGroupId string

Privacy group ID to add to

privateKey string

Private Key used to sign transaction with

enclaveKey string

Enclave public key

participants Array.<string>

list of enclaveKey to pass to the contract to add to the group

Returns:
Type
Promise.<T>

(inner) find(public) → {Object}

Source:
Parameters:
Name Type Description
public Array.<String>

enclave keys

Returns:
Type
Object

(inner) getParticipants(options) → {Promise.<T>}

Source:

Get Participants of a specific privacy group

Parameters:
Name Type Description
options Object
Properties
Name Type Description
privacyGroupId string

Privacy group ID

Returns:
Type
Promise.<T>

(inner) removeFrom(options) → {Promise.<T>}

Source:

Remove a member from an on-chain privacy group

Parameters:
Name Type Description
options Object

Map to add the members

Properties
Name Type Description
privacyGroupId string

Privacy group ID to add to

privateKey string

Private Key used to sign transaction with

enclaveKey string

Enclave public key

participant string

single enclaveKey to pass to the contract to add to the group

Returns:
Type
Promise.<T>

(inner) setLockState(options) → {Promise.<T>}

Source:

Either lock or unlock the privacy group for member adding

Parameters:
Name Type Description
options Object

Map to lock the group

Properties
Name Type Description
privacyGroupId string

Privacy group ID to lock/unlock

privateKey string

Private Key used to sign transaction with

enclaveKey string

Enclave public key

lock boolean

boolean indicating whether to lock or unlock

Returns:
Type
Promise.<T>