From 814cec14957e4c1148906c94fff4cf698e9143a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Fri, 18 Oct 2024 10:48:47 +0200 Subject: [PATCH] wip API exploration --- token/interface.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/token/interface.go b/token/interface.go index 6865ccf..b3a8d21 100644 --- a/token/interface.go +++ b/token/interface.go @@ -7,30 +7,17 @@ import ( "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime/codec" "github.com/libp2p/go-libp2p/core/crypto" - "github.com/ucan-wg/go-ucan/did" - "github.com/ucan-wg/go-ucan/pkg/meta" ) type Token interface { Marshaller - // Issuer returns the did.DID representing the Token's issuer. - Issuer() did.DID - // Meta returns the Token's metadata. - Meta() meta.ReadOnly - // TODO: not sure we actually need that interface - // IsValidNow verifies that the token can be used at the current time, based on expiration or "not before" fields. // This does NOT do any other kind of verifications. IsValidNow() bool // IsValidNow verifies that the token can be used at the given time, based on expiration or "not before" fields. // This does NOT do any other kind of verifications. IsValidAt(t time.Time) bool - - // // Issuer returns the did.DID representing the Token's issuer. - // Issuer() did.DID - // // Meta returns the Token's metadata. - // Meta() *meta.Meta } type Marshaller interface {