libricochet-go/application/contactmanagerinterface.go

14 lines
421 B
Go
Raw Permalink Normal View History

package application
import (
"crypto/rsa"
2018-09-22 20:12:08 +00:00
"golang.org/x/crypto/ed25519"
)
// ContactManagerInterface provides a mechanism for autonous applications
// to make decisions on what connections to accept or reject.
type ContactManagerInterface interface {
LookupContact(hostname string, publicKey rsa.PublicKey) (allowed, known bool)
2018-09-22 20:12:08 +00:00
LookupContactV3(hostname string, publicKey ed25519.PublicKey) (allowed, known bool)
}