Versions in this module Expand all Collapse all v0 v0.2.0 Sep 27, 2026 Changes in this version + var AcceptedSpecVersions = []string v0.1.0 Sep 23, 2026 Changes in this version + const AttestationModeAnchored + const AttestationModeSelfAttested + const CanonicalizationID + const ContentType + const EffectModeConfirmed + const EffectModeDispatchedUnconfirmed + const EffectModeNotApplicable + const FormatVersion + const LedgerModeAnchored + const LedgerModeChained + const LedgerModeStandalone + const SpecVersion + func DecodePayload(payload []byte) (map[string]any, error) + func DigestJSON(value any) (string, error) + func IsV4IrreversibilityClass(value IrreversibilityClass) bool + func Sign(built BuiltPayload, identity SigningIdentity) ([]byte, error) + func VerifyCapsule(data []byte) (verify.VerificationResult, error) + func VerifyEnvelope(capsuleID string, data []byte) (upstreamenvelope.VerificationResult, error) + type ActionType string + const ActionTypeDecide + const ActionTypeFYI + type Approver string + const ApproverCounterparty + const ApproverHuman + const ApproverPolicy + type AttestationMode string + type BuiltPayload struct + CapsuleID string + JSON []byte + Value map[string]any + func Build(input Input) (BuiltPayload, error) + func BuildComposition(input Input, members ...SlotMember) (BuiltPayload, error) + func Carry(input Input, artifact []byte) (BuiltPayload, error) + func Received(input Input, artifact []byte, artifactType string) (BuiltPayload, error) + type Chain struct + ParentCapsuleID string + Relation ChainRelation + type ChainRelation string + const ChainConfirms + const ChainDuplicates + const ChainEpochOpens + const ChainSupersedes + type Class1Error struct + Findings []verify.Finding + func (e *Class1Error) Error() string + type ComputeAttestation struct + AgentInputDigest string + AgentOutputDigest string + Runtime string + type Decision string + const DecisionAccept + const DecisionDeferred + const DecisionNeedsInput + const DecisionReject + type Disposition struct + Approver Approver + Decision Decision + HumanDisposed bool + ReasonDigest string + VerdictClass VerdictClass + type Domain string + const DomainAction + const DomainMemory + const DomainReasoning + type Effect struct + EffectAttestation EffectAttestation + ExternalRef string + IrreversibilityClass IrreversibilityClass + RequestDigest string + ResponseDigest string + Status EffectStatus + Type string + type EffectAttestation string + const AttestationGateExecuted + const AttestationRuntimeClaimed + type EffectMode string + type EffectStatus string + const EffectConfirmed + const EffectDispatched + const EffectFailed + const EffectPlanned + const EffectReverted + type Input struct + ActionID string + ActionType ActionType + Chain *Chain + Compute *ComputeAttestation + Developer string + Disposition *Disposition + Domain Domain + Effect *Effect + EpochID string + Model *Model + Operator string + Provenance Provenance + ProvenanceMode *ProvenanceMode + References []Reference + Timestamp time.Time + type IrreversibilityClass string + const IrreversibilityOneWayConsequential + const IrreversibilityOneWayRecoverable + const IrreversibilityOneWayTerminal + const IrreversibilityTwoWay + type LedgerMode string + type Model struct + ModelID string + Provider string + type Provenance string + const ProvenanceCollector + const ProvenanceGate + const ProvenanceRuntime + type ProvenanceMode struct + ImportBatch string + ImportedAt string + Mode ProvenanceModeValue + SourceAssertedAt string + SourceRef *Reference + TimeRung TimeRung + type ProvenanceModeValue string + const ProvenanceModeBackfilled + const ProvenanceModeContemporaneous + type Reference struct + CitationPurpose string + Digest string + DigestAlg string + LogCoordinates map[string]any + Type string + type Result struct + CapsuleID string + Envelope []byte + Payload []byte + func Seal(input SealInput) (Result, error) + type SealInput struct + AgentOutput any + Capsule Input + Identity SigningIdentity + Members []SlotMember + Model *Model + Payload any + Runtime string + type SigningIdentity struct + func NewEd25519SigningIdentity(privateKey ed25519.PrivateKey) (SigningIdentity, error) + func NewSigningIdentity(signer cose.Signer, publicKey ed25519.PublicKey) (SigningIdentity, error) + type SlotMember struct + func Audit[T compositionMember](member T) SlotMember + func Can[T compositionMember](member T) SlotMember + func Did[T compositionMember](member T) SlotMember + func Who[T compositionMember](member T) SlotMember + type TimeRung string + const TimeRungSelfAttested + const TimeRungWitnessed + type VerdictClass string + const VerdictBlocked + const VerdictDeferred + const VerdictDenied + const VerdictEngineFailure + const VerdictEpochBoundary + const VerdictErrored + const VerdictEscalated + const VerdictExecuted + const VerdictExpired + const VerdictHITLDispatched + const VerdictNeedsDecision + const VerdictResolved + const VerdictTimeout