auth: Put auth methods in API

This commit is contained in:
Łukasz Magiera
2019-07-24 00:37:05 +02:00
parent fa4bf5178a
commit 309ecc4052
9 changed files with 78 additions and 31 deletions
+4
View File
@@ -33,6 +33,10 @@ type MsgWait struct {
// API is a low-level interface to the Filecoin network
type API interface {
// Auth
AuthVerify(ctx context.Context, token string) ([]string, error)
AuthNew(ctx context.Context, perms []string) ([]byte, error)
// chain
ChainHead(context.Context) (*chain.TipSet, error) // TODO: check serialization