We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfa6420 commit 6108421Copy full SHA for 6108421
1 file changed
validator/proof_pruning.go
@@ -22,7 +22,7 @@ import (
22
// attestor must be the verifier of the service that issued the ucan/attest
23
// delegations in the proof pool (e.g. the upload-service in the storacha
24
// network).
25
-func NewProofPruner(attestor principal.Verifier, cap CapabilityParser[any]) delegation.ProofPruner {
+func NewProofPruner[Caveats any](attestor principal.Verifier, cap CapabilityParser[Caveats]) delegation.ProofPruner {
26
return func(issuer ucan.Signer, audience ucan.Principal, capabilities []ucan.Capability[ucan.CaveatBuilder], options ...delegation.Option) (delegation.Proofs, error) {
27
draft, err := delegation.Delegate(issuer, audience, capabilities, options...)
28
if err != nil {
0 commit comments