Documentation
¶
Index ¶
- func CreateHumanMessage(rawMsg, secret string) (string, error)
- func DecryptMessage(message, secret string) (string, error)
- func EthAddress() (string, error)
- func EthPrivateKey() (string, error)
- func ExportAccountStore(pw, pwConfirm string) (string, error)
- func GetIdentityPublicKey() (string, error)
- func GetMnemonic() (string, error)
- func HandleInitialMessage(message, preKeyBundlePrivatePart string) (string, error)
- func IdentityPublicKey() (string, error)
- func InitializeChat(identityPublicKey, preKeyBundle string) (string, error)
- func IsValidMnemonic(mne string) bool
- func NewAccountKeys(pw, pwConfirm string) (string, error)
- func NewAccountKeysFromMnemonic(mne, pw, pwConfirm string) (string, error)
- func NewPreKeyBundle() (string, error)
- func SendResponse(id string, data string) error
- func SignProfile(name, location, image string) (string, error)
- func SignProfileStandAlone(name, location, image, keyManagerStore, password string) (string, error)
- func Start(config string, password string, client UpStream) error
- func StartFromMnemonic(config string, mnemonic string, client UpStream) error
- func Stop() error
- type Panthalassa
- type StartConfig
- type UpStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHumanMessage ¶
create message secret should be a aes cipher text as string
func DecryptMessage ¶
decrypt a chat message secret should be a cipher text as string
func EthAddress ¶
func ExportAccountStore ¶
Export the current account store with given password
func GetIdentityPublicKey ¶
fetch the identity public key of the
func GetMnemonic ¶
func HandleInitialMessage ¶
return a encrypted shared secret used by the double rachet
func IdentityPublicKey ¶
func InitializeChat ¶
initialize chat with given identity key and pre key bundle
func NewAccountKeys ¶
Creates an new set of encrypted account key's
func NewAccountKeysFromMnemonic ¶
Create new account store from mnemonic This can e.g. be used in case you need to recover your account
func SendResponse ¶
func SignProfile ¶
func SignProfileStandAlone ¶
sign profile
func StartFromMnemonic ¶
create a new panthalassa instance with the mnemonic
Types ¶
type Panthalassa ¶
type Panthalassa struct {
// contains filtered or unexported fields
}
func (*Panthalassa) AddContact ¶
func (p *Panthalassa) AddContact(pubKey string) error
add friend to peer store
func (*Panthalassa) Export ¶
func (p *Panthalassa) Export(pw, pwConfirm string) (string, error)
Export account with the given password
func (*Panthalassa) Stop ¶
func (p *Panthalassa) Stop() error
Stop the panthalassa instance this becomes interesting when we start to use the mesh network