Documentation ¶
Index ¶
- func AddUsersToGroupChat(users string, chatID int) error
- func AllChats() (string, error)
- func Call(command, payload string) (string, error)
- func CallDAppFunction(signingKey string, id int, args string) error
- func ConnectLogger(address string) error
- func ConnectToDAppDevHost(address string) error
- func CreateGroupChat(users string, name string) (int, error)
- func CreatePrivateChat(partnerStr string) (int, error)
- func DApps() (string, error)
- func EthAddress() (string, error)
- func EthPrivateKey() (string, error)
- func EthPubToAddress(pub string) (string, error)
- func ExportAccountStore(pw, pwConfirm string) (string, error)
- func GetIdentityPublicKey() (string, error)
- func GetMnemonic() (string, error)
- func IdentityPublicKey() (string, error)
- func IsValidMnemonic(mne string) bool
- func MarkMessagesAsRead(chatID int) error
- func Messages(chatID int, startStr string, amount int) (string, error)
- func NewAccountKeys(pw, pwConfirm string) (string, error)
- func NewAccountKeysFromMnemonic(mne, pw, pwConfirm string) (string, error)
- func OpenDApp(id, context string) error
- func RegisterContactCalls(dcr *dyncall.Registry, dbInstance *storm.DB) error
- func RegisterDocumentCalls(dcr *dyncall.Registry, docStorage *documents.Storage, ...) error
- func RenderMessage(signingKey, payload string) (string, error)
- func SendMessage(chatID int, message string) error
- func SendResponse(id string, data string, responseError string, timeout int) error
- func SetLogger(level string) error
- func SignProfile(name, location, image string) (string, error)
- func SignProfileStandAlone(name, location, image, keyManagerStore, password string) (string, error)
- func Start(dbDir, config, password string, client, uiUpstream UpStream) error
- func StartDApp(dAppSingingKeyStr string, timeout int) error
- func StartFromMnemonic(dbDir, config, mnemonic string, client, uiUpstream UpStream) error
- func Stop() error
- func StopDApp(dAppSingingKeyStr string) error
- type Panthalassa
- type StartConfig
- type UpStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUsersToGroupChat ¶
func ConnectLogger ¶
func ConnectToDAppDevHost ¶
connect the host to DApp development server
func CreatePrivateChat ¶
func EthAddress ¶
func EthPubToAddress ¶
converts an ethereum public key to address
func ExportAccountStore ¶
Export the current account store with given password
func GetIdentityPublicKey ¶
fetch the identity public key of the
func GetMnemonic ¶
func IdentityPublicKey ¶
func MarkMessagesAsRead ¶
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 RegisterContactCalls ¶
func RegisterDocumentCalls ¶
func RegisterDocumentCalls(dcr *dyncall.Registry, docStorage *documents.Storage, km *keyManager.KeyManager) error
func RenderMessage ¶
func SendMessage ¶
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
type StartConfig ¶
type StartConfig struct { EncryptedKeyManager string `json:"encrypted_key_manager"` SignedProfile string `json:"signed_profile"` EthWsEndpoint string `json:"eth_ws_endpoint"` EnableDebugging bool `json:"enable_debugging"` PrivChatEndpoint string `json:"private_chat_endpoint"` PrivChatBearerToken string `json:"private_chat_bearer_token"` }
Click to show internal directories.
Click to hide internal directories.