# internal/adapters/trustcheck

Package trustcheck adapts trusted-key files to the session replay trust port.

## FromFile

```go
func FromFile(path string) Checker
```

FromFile returns a checker for path. Read or parse failures are retained and reported only if replay actually encounters a receipt entry.

## FromRoot

```go
func FromRoot(root string, configuredPath string) Checker
```

FromRoot resolves configuredPath below root unless it is absolute.

## Checker

```go
type Checker struct {
	Keys    trust.TrustedKeys
	LoadErr error
}
```

Checker validates receipt signatures against trusted-key lifecycle metadata.

- `Keys: trust.TrustedKeys`: 
- `LoadErr: error`: 

## CheckReceiptTrust

```go
func (c Checker) CheckReceiptTrust(envelope receipt.Envelope) error
```

CheckReceiptTrust implements session.ReceiptTrustChecker.
