Make an interface of KeysAndCert

This commit is contained in:
idk
2021-04-24 16:05:23 -04:00
parent bfc7237ba6
commit 648c05b15f

View File

@ -59,6 +59,12 @@ const (
KEYS_AND_CERT_DATA_SIZE = 384 KEYS_AND_CERT_DATA_SIZE = 384
) )
type KeysAndCertInterface interface {
GetPublicKey() (key crypto.PublicKey, err error)
GetSigningPublicKey() (signing_public_key crypto.SigningPublicKey, err error)
GetCertificate() (cert Certificate, err error)
}
type KeysAndCert struct { type KeysAndCert struct {
crypto.SigningPublicKey crypto.SigningPublicKey
crypto.PublicKey crypto.PublicKey