Versions in this module Expand all Collapse all v0 v0.1.0 Aug 16, 2026 Changes in this version + const StorageA + const StorageB + const StorageC + var AllParticleKinds = []ParticleKind + var CoreParticleKinds = []ParticleKind + func AllShardKeys(logicalKey string) map[ParticleKind]string + func CRC32IEEE(data []byte) uint32 + func DecodeFingerprint(present map[ParticleKind]bool, shards map[ParticleKind][]byte) ([32]byte, error) + func DecodeFromParticles(evenCypher, oddCypher, evenNoise, oddNoise []byte) ([]byte, error) + func DecodeWithRecovery(inv *ParticleInventory, particles map[ParticleKind][]byte, logicalSize int64) ([]byte, bool, error) + func Decrypt(cypher, noise []byte) ([]byte, error) + func EncodeResultShard(r *EncodeResult, kind ParticleKind) []byte + func Encrypt(secret, noise []byte) []byte + func IsParticleShard(key string) bool + func Merge(even, odd []byte) []byte + func ParityPadded(even, odd []byte) []byte + func ParticleSuffix(kind ParticleKind) string + func RandomNoise(n int) ([]byte, error) + func ReconstructEvenFromParityOdd(haveOdd, parity []byte) ([]byte, error) + func ReconstructFromParityEven(have, parity []byte) ([]byte, error) + func ReconstructOddFromParityOdd(haveEven, parity []byte) ([]byte, error) + func RecoverAllFingerprintShards(present map[ParticleKind]bool, shards map[ParticleKind][]byte) (map[ParticleKind][]byte, error) + func RecoverCoreParticlesInto(inv *ParticleInventory, data map[ParticleKind][]byte, logicalSize int64) error + func ShardKey(logicalKey string, kind ParticleKind) string + func Split(text []byte) ([]byte, []byte) + func StorageForParticle(kind ParticleKind) string + type EncodeResult struct + CypherParity []byte + EvenCypher []byte + EvenNoise []byte + NoiseParity []byte + OddCypher []byte + OddNoise []byte + func Encode(secret []byte) (*EncodeResult, error) + func EncodeFingerprint(digest [32]byte) (*EncodeResult, error) + func EncodeWithNoise(secret, noise []byte) (*EncodeResult, error) + type ParticleInventory struct + Present map[ParticleKind]bool + func InventoryFromPresent(present map[ParticleKind]bool) (*ParticleInventory, error) + func NewParticleInventory(present map[ParticleKind]bool) *ParticleInventory + func (inv *ParticleInventory) MissingCoreParticles() []ParticleKind + func (inv *ParticleInventory) NeedsParityRecovery() bool + type ParticleKind int + const CypherParity + const EvenCypher + const EvenNoise + const NoiseParity + const OddCypher + const OddNoise + func LogicalKeyFromShard(shardKey string) (logicalKey string, kind ParticleKind, ok bool) + func (k ParticleKind) String() string