Skip to content

dataSetMetadata

dataSetMetadata(ref, groupKeyCommitment): Record<string, string>

Defined in: derive.ts:387

The metadata to record on a data set for this group key: its id under foc/gkid and the group key commitment (from commitment) under foc/kc, so the chain alone can list a wallet’s group keys.

Synapse reuses a data set only on an exact metadata match. To keep adding to an existing data set, pass that data set’s metadata as it is, rather than rebuilding it here.

Parameter Type
ref GroupKeyRef
groupKeyCommitment string

Record<string, string>

If the id is not 16 bytes of hex, or groupKeyCommitment is not a commitment in format v2.