Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProtocolVersion defines the current UIL specification version for v0.5 ProtocolVersion = "UIP-0.5-PQ" // Substrate Targets SubstrateAuto = "SUBSTRATE_AUTO" SubstrateRadeonVulkan = "RADEON_840M_VULKAN" SubstrateNvidiaCUDA = "NVIDIA_RTX_CUDA" SubstrateHailoNPU = "HAILO8_NPU" SubstrateMemryXNPU = "MEMRYX_NPU" SubstrateXDNA2NPU = "AMD_XDNA2_NPU" // Cryptographic Hash Algorithms HashAlgSHA3_256 = "SHA3-256" HashAlgSHA3_512 = "SHA3-512" HashAlgBLAKE3 = "BLAKE3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UILEnvelope ¶
type UILEnvelope struct {
ProtocolVersion string `json:"protocol_version"`
EnvelopeID string `json:"envelope_id"`
SourceNode string `json:"source_node"`
TargetNode string `json:"target_node,omitempty"`
Timestamp string `json:"timestamp"`
ImportanceScore float64 `json:"importance_score"`
SubstrateTarget string `json:"substrate_target"`
HashAlg string `json:"hash_alg"`
ProofCommitment string `json:"proof_commitment,omitempty"`
PQSignature string `json:"pq_signature,omitempty"` // Base64 Dilithium/SPHINCS+ sig
Payload map[string]interface{} `json:"payload"`
}
UILEnvelope defines the standardized message container across the UIL Mesh.
func NewEnvelope ¶
func NewEnvelope(sourceNode, targetNode, substrate string, payload map[string]interface{}) *UILEnvelope
NewEnvelope constructs a compliant UIL Envelope with auto-generated ID and RFC3339 timestamp.
func (*UILEnvelope) ComputePayloadHash ¶
func (e *UILEnvelope) ComputePayloadHash() (string, error)
ComputePayloadHash calculates a deterministic hash using the configured algorithm (SHA3-256 / SHA3-512).
func (*UILEnvelope) Validate ¶
func (e *UILEnvelope) Validate() error
Validate checks structural integrity and protocol compliance of the envelope.
Click to show internal directories.
Click to hide internal directories.