Documentation ¶
Index ¶
- func CreateIdentityKeyPair() (pub []byte, priv []byte, err error)
- func CreatePreKey() ([]byte, error)
- func CreateSignedPreKey(idkeypair identity.KeyPair) ([]byte, error)
- func IDsToGOB(id IDs) []byte
- func InitGOB()
- func ReadIdentityKeyPair() identity.KeyPair
- func ReadPreKey() ([]byte, error)
- func ReadSignedPreKey() ([]byte, error)
- func Readfile(content *[]byte, path string) error
- func Writefile(content []byte, path string) error
- type IDs
- type Retrievable
- type RetrievableRaw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIdentityKeyPair ¶
func CreatePreKey ¶
func ReadIdentityKeyPair ¶
func ReadPreKey ¶
func ReadSignedPreKey ¶
Types ¶
type IDs ¶
func IDsFromGOB ¶
type Retrievable ¶
type Retrievable struct { Ids IDs PreKey record.PreKey SignedPreKey record.SignedPreKey IdentityKeyPair identity.KeyPair }
func ReadBundle ¶
func ReadBundle() (Retrievable, error)
type RetrievableRaw ¶
type RetrievableRaw struct { Ids IDs PreKey []byte SignedPreKey []byte IdentityKeyPairPub []byte IdentityKeyPairPriv []byte }
func CreateBundleRaw ¶
func CreateBundleRaw() (RetrievableRaw, error)
Click to show internal directories.
Click to hide internal directories.