Marmot-TS
    Preparing search index...

    Class GroupSession<THistory>

    Type Parameters

    Index

    Client - Session

    ciphersuite: CiphersuiteImpl
    history: THistory
    rewindStore?: GenericKeyValueStore<Uint8Array<ArrayBufferLike>>
    • Builds the self-remove proposal effects for leaving the group.

      Per RFC 9420 §12.4 a member cannot commit a Remove targeting their own leaf, so this emits self-remove proposal(s) for the next committer (e.g. an admin) to apply. Modelled as a send-intent — the darkmatter engine exposes the same operation as do_send_leave rather than letting callers hand-build the proposals.

      Parameters

      • ownPubkey: string

        The leaving member's Nostr public key (hex string).

      Returns Promise<GroupEffects>

      Publishable proposal effects (one per owned leaf node).