Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct {
Name string
// contains filtered or unexported fields
}
Identity is an encapsulation of Name, PrivateKey and other features that make up a Ricochet client. The purpose of Identity is to prevent other classes directly accessing private key and to ensure the integrity of security-critical functions.
func Init ¶
Init loads an identity from a file. Currently file should be a private_key but this may change in the future. //XXX
func Initialize ¶
func Initialize(name string, pk *rsa.PrivateKey) Identity
Initialize is a courtesy function for initializing an Identity in-code.
func (*Identity) Initialized ¶
Initialized ensures that an Identity has been assigned a private_key and is ready to perform operations.
func (*Identity) PublicKeyBytes ¶
PublicKeyBytes returns the public key associated with this Identity in serializable-friendly format. //TODO Not sure I like this.