hyperdimensional

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDAttackPlan

type HDAttackPlan struct {
	AttackID      string
	AttackType    HDAttackType
	BaseVectors   []*HDVector
	TargetConcept string
	Operations    []HDOperation
	Iterations    int
	Threshold     float64
}

HDAttackPlan defines a hyperdimensional computing attack

type HDAttackResult

type HDAttackResult struct {
	Success           bool
	FinalVector       *HDVector
	SimilarityScore   float64
	ResonanceAchieved bool
	ExploitVector     *HDVector
	Convergence       []float64
	Vulnerability     string
}

HDAttackResult contains attack results

type HDAttackType

type HDAttackType string

HDAttackType represents different hyperdimensional attack methods

const (
	HDBindingAttack       HDAttackType = "binding_attack"
	HDSuperpositionAttack HDAttackType = "superposition_attack"
	HDPermutationAttack   HDAttackType = "permutation_attack"
	HDSimilarityExploit   HDAttackType = "similarity_exploit"
	HDResonanceAttack     HDAttackType = "resonance_attack"
	HDInterferenceAttack  HDAttackType = "interference_attack"
	HDHolographicExploit  HDAttackType = "holographic_exploit"
	HDQuantizationAttack  HDAttackType = "quantization_attack"
	HDAssociativeChain    HDAttackType = "associative_chain"
	HDDimensionalShift    HDAttackType = "dimensional_shift"
)

type HDComputingEngine

type HDComputingEngine struct {
	// contains filtered or unexported fields
}

HDComputingEngine implements hyperdimensional computing attacks

func NewHDComputingEngine

func NewHDComputingEngine(logger common.AuditLogger) *HDComputingEngine

NewHDComputingEngine creates a new instance

func (*HDComputingEngine) ExecuteHDAttack

func (e *HDComputingEngine) ExecuteHDAttack(
	ctx context.Context,
	plan *HDAttackPlan,
) (*HDAttackResult, error)

ExecuteHDAttack performs a hyperdimensional computing attack

type HDOperation

type HDOperation struct {
	OperationType string // "bind", "bundle", "permute", "project"
	Parameters    map[string]interface{}
	InputVectors  []int // Indices into vector pool
	OutputIndex   int
}

HDOperation represents an operation on HD vectors

type HDVector

type HDVector struct {
	Values     []float64
	Dimension  int
	IsBinary   bool
	Sparsity   float64
	Properties map[string]interface{}
}

HDVector represents a hyperdimensional vector

Jump to

Keyboard shortcuts

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