Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DecodeString = base64.RawStdEncoding.DecodeString EncodeToString = base64.RawStdEncoding.EncodeToString )
Functions ¶
func NewIdentity ¶
func NewLocalStore ¶
Types ¶
type PrivateIdentity ¶
type PrivateIdentity interface {
PublicIdentity
ECDSAPrivateKey() *ecdsa.PrivateKey
Ed25519PrivateKey() ed25519.PrivateKey
SealPrivateKey() [32]byte
OpenMessage(PublicIdentity, []byte) (string, error)
SealMessage(PublicIdentity, string) ([]byte, error)
OpenAnonymous([]byte) (string, error)
}
type PublicIdentity ¶
type Store ¶
type Store interface {
NewIdentity(string, []string) (PublicIdentity, PrivateIdentity, error)
GetIdentity(string) (PublicIdentity, error)
PutSecret(PublicIdentity, string, string) error
GetSecret(PrivateIdentity, string) (string, error)
Close()
}
Click to show internal directories.
Click to hide internal directories.