groupe2ee

package
v0.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Profile                   = "anp.group.e2ee.v1"
	SecurityProfile           = "group-e2ee"
	TransportSecurityProfile  = "transport-protected"
	ContractArtifactMode      = "contract-test"
	MTISuite                  = "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519"
	MethodLeaveRequest        = "group.e2ee.leave_request"
	MethodLeaveRequestProcess = "group.e2ee.process_leave_request"
	MethodRecoverMember       = "group.e2ee.recover_member"
	MethodUpdate              = "group.e2ee.update"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationPlaintext

type ApplicationPlaintext struct {
	ApplicationContentType string         `json:"application_content_type"`
	ThreadID               string         `json:"thread_id,omitempty"`
	ReplyToMessageID       string         `json:"reply_to_message_id,omitempty"`
	Annotations            map[string]any `json:"annotations,omitempty"`
	Text                   string         `json:"text,omitempty"`
	Payload                map[string]any `json:"payload,omitempty"`
	PayloadB64U            string         `json:"payload_b64u,omitempty"`
}

type CommandRunner

type CommandRunner interface {
	Run(ctx context.Context, binary string, args []string, stdin []byte) (stdout []byte, stderr []byte, err error)
}

type EnvelopeMeta

type EnvelopeMeta struct {
	ANPVersion      string     `json:"anp_version"`
	Profile         string     `json:"profile"`
	SecurityProfile string     `json:"security_profile"`
	SenderDID       string     `json:"sender_did,omitempty"`
	Target          *TargetRef `json:"target,omitempty"`
	OperationID     string     `json:"operation_id,omitempty"`
	MessageID       string     `json:"message_id,omitempty"`
	ContentType     string     `json:"content_type,omitempty"`
	CreatedAt       string     `json:"created_at,omitempty"`
}

type ErrorObject

type ErrorObject struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type ExecProvider

type ExecProvider struct {
	BinaryPath string
	DataDir    string
	Timeout    time.Duration
	Runner     CommandRunner
}

func (ExecProvider) Call

func (p ExecProvider) Call(ctx context.Context, domain string, action string, req Request) (*Response, error)

type GroupCipherObject

type GroupCipherObject struct {
	CryptoGroupIDB64U  string        `json:"crypto_group_id_b64u"`
	Epoch              string        `json:"epoch"`
	PrivateMessageB64U string        `json:"private_message_b64u"`
	GroupStateRef      GroupStateRef `json:"group_state_ref"`
	EpochAuthenticator string        `json:"epoch_authenticator,omitempty"`
	NonCryptographic   bool          `json:"non_cryptographic,omitempty"`
	ArtifactMode       string        `json:"artifact_mode,omitempty"`
}

type GroupKeyPackage

type GroupKeyPackage struct {
	KeyPackageID      string         `json:"key_package_id"`
	OwnerDID          string         `json:"owner_did"`
	DeviceID          string         `json:"device_id,omitempty"`
	Purpose           string         `json:"purpose,omitempty"`
	GroupDID          string         `json:"group_did,omitempty"`
	Suite             string         `json:"suite"`
	MLSKeyPackageB64U string         `json:"mls_key_package_b64u"`
	DIDWBABinding     map[string]any `json:"did_wba_binding"`
	ExpiresAt         string         `json:"expires_at,omitempty"`
	NonCryptographic  bool           `json:"non_cryptographic,omitempty"`
	ArtifactMode      string         `json:"artifact_mode,omitempty"`
}

type GroupLeaveRequestObject

type GroupLeaveRequestObject struct {
	LeaveRequestID   string        `json:"leave_request_id"`
	GroupDID         string        `json:"group_did"`
	RequesterDID     string        `json:"requester_did"`
	GroupStateRef    GroupStateRef `json:"group_state_ref"`
	ReasonText       string        `json:"reason_text,omitempty"`
	RequestedAt      string        `json:"requested_at,omitempty"`
	NonCryptographic bool          `json:"non_cryptographic,omitempty"`
	ArtifactMode     string        `json:"artifact_mode,omitempty"`
}

type GroupLeaveRequestProcessObject

type GroupLeaveRequestProcessObject struct {
	LeaveRequestID     string        `json:"leave_request_id"`
	GroupDID           string        `json:"group_did"`
	RequesterDID       string        `json:"requester_did"`
	ProcessorDID       string        `json:"processor_did"`
	GroupStateRef      GroupStateRef `json:"group_state_ref"`
	CryptoGroupIDB64U  string        `json:"crypto_group_id_b64u"`
	Epoch              string        `json:"epoch"`
	CommitB64U         string        `json:"commit_b64u"`
	EpochAuthenticator string        `json:"epoch_authenticator,omitempty"`
	ReasonText         string        `json:"reason_text,omitempty"`
	NonCryptographic   bool          `json:"non_cryptographic,omitempty"`
	ArtifactMode       string        `json:"artifact_mode,omitempty"`
}

type GroupStateRef

type GroupStateRef struct {
	GroupDID          string `json:"group_did"`
	GroupStateVersion string `json:"group_state_version"`
	PolicyHash        string `json:"policy_hash,omitempty"`
}

type OSCommandRunner

type OSCommandRunner struct{}

func (OSCommandRunner) Run

func (OSCommandRunner) Run(ctx context.Context, binary string, args []string, stdin []byte) ([]byte, []byte, error)

type RecoverMemberAbortRequestObject

type RecoverMemberAbortRequestObject struct {
	OperationID     string `json:"operation_id,omitempty"`
	PendingCommitID string `json:"pending_commit_id"`
}

type RecoverMemberFinalizeRequestObject

type RecoverMemberFinalizeRequestObject struct {
	OperationID     string `json:"operation_id,omitempty"`
	PendingCommitID string `json:"pending_commit_id"`
}

type RecoverMemberRequestObject

type RecoverMemberRequestObject struct {
	OperationID          string              `json:"operation_id"`
	GroupDID             string              `json:"group_did"`
	ActorDID             string              `json:"actor_did"`
	Target               RecoverMemberTarget `json:"target"`
	GroupStateRef        GroupStateRef       `json:"group_state_ref"`
	RecoveryKeyPackageID string              `json:"recovery_key_package_id,omitempty"`
	GroupKeyPackage      *GroupKeyPackage    `json:"group_key_package,omitempty"`
	CommitB64U           string              `json:"commit_b64u"`
	WelcomeB64U          string              `json:"welcome_b64u"`
	RatchetTreeB64U      string              `json:"ratchet_tree_b64u,omitempty"`
	Epoch                string              `json:"epoch"`
	EpochAuthenticator   string              `json:"epoch_authenticator,omitempty"`
	NonCryptographic     bool                `json:"non_cryptographic,omitempty"`
	ArtifactMode         string              `json:"artifact_mode,omitempty"`
}

type RecoverMemberTarget

type RecoverMemberTarget struct {
	AgentDID string `json:"agent_did"`
	DeviceID string `json:"device_id"`
}

type Request

type Request struct {
	APIVersion          string         `json:"api_version"`
	RequestID           string         `json:"request_id"`
	AgentDID            string         `json:"agent_did,omitempty"`
	DeviceID            string         `json:"device_id,omitempty"`
	ContractTestEnabled bool           `json:"contract_test_enabled,omitempty"`
	Params              map[string]any `json:"params"`
}

type Response

type Response struct {
	OK         bool           `json:"ok"`
	APIVersion string         `json:"api_version"`
	RequestID  string         `json:"request_id"`
	Result     map[string]any `json:"result,omitempty"`
	Error      *ErrorObject   `json:"error,omitempty"`
}

type TargetRef

type TargetRef struct {
	Kind string `json:"kind"`
	DID  string `json:"did"`
}

type UpdateMemberAbortRequestObject

type UpdateMemberAbortRequestObject struct {
	OperationID     string `json:"operation_id,omitempty"`
	PendingCommitID string `json:"pending_commit_id"`
}

type UpdateMemberFinalizeRequestObject

type UpdateMemberFinalizeRequestObject struct {
	OperationID     string `json:"operation_id,omitempty"`
	PendingCommitID string `json:"pending_commit_id"`
}

type UpdateMemberRequestObject

type UpdateMemberRequestObject struct {
	OperationID        string             `json:"operation_id"`
	GroupDID           string             `json:"group_did"`
	ActorDID           string             `json:"actor_did"`
	Target             UpdateMemberTarget `json:"target"`
	GroupStateRef      GroupStateRef      `json:"group_state_ref"`
	UpdateKeyPackageID string             `json:"update_key_package_id"`
	GroupKeyPackage    GroupKeyPackage    `json:"group_key_package"`
	CommitB64U         string             `json:"commit_b64u"`
	WelcomeB64U        string             `json:"welcome_b64u"`
	RatchetTreeB64U    string             `json:"ratchet_tree_b64u,omitempty"`
	CryptoGroupIDB64U  string             `json:"crypto_group_id_b64u"`
	Epoch              string             `json:"epoch"`
	EpochAuthenticator string             `json:"epoch_authenticator,omitempty"`
	NonCryptographic   bool               `json:"non_cryptographic,omitempty"`
	ArtifactMode       string             `json:"artifact_mode,omitempty"`
}

type UpdateMemberTarget

type UpdateMemberTarget struct {
	AgentDID string `json:"agent_did"`
	DeviceID string `json:"device_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL