Skip to content

Commit

Permalink
feat(protocol): sender aliases and envelope signature #169
Browse files Browse the repository at this point in the history
Also implemented:
Persistant private key #305
Sending ack
  • Loading branch information
Guillaume Louvigny committed Oct 4, 2018
1 parent d3f0a08 commit 4e381d9
Show file tree
Hide file tree
Showing 40 changed files with 3,381 additions and 204 deletions.
29 changes: 29 additions & 0 deletions client/react-native/common/schema.graphql
Expand Up @@ -379,6 +379,30 @@ type BertyEntityMessage {



type BertyEntitySenderAlias {
id: String
createdAt: DateTime
updatedAt: DateTime
deletedAt: DateTime
status: BertyEntitySenderAliasStatus
originDeviceId: String
contactId: String
conversationId: String
aliasIdentifier: String
used: Boolean
}

enum BertyEntitySenderAliasStatus {
UNKNOWN
SENT
SENT_AND_ACKED
RECEIVED
}





type BertyP2pSentAttrs {
ids: [String]
}
Expand Down Expand Up @@ -422,6 +446,10 @@ type BertyP2pDevtoolsMapsetAttrs {
val: String
}

type BertyP2pSenderAliasUpdateAttrs {
aliases: [BertyEntitySenderAlias]
}

enum BertyP2pKind {
Unknown
Sent
Expand All @@ -434,6 +462,7 @@ enum BertyP2pKind {
ConversationInvite
ConversationNewMessage
DevtoolsMapset
SenderAliasUpdate
}


Expand Down
3 changes: 3 additions & 0 deletions client/react-native/gomobile/core.go
Expand Up @@ -282,6 +282,9 @@ func daemon(opts *daemonOptions) error {
node.WithSQL(db),
node.WithDevice(&entity.Device{Name: user}), // FIXME: get device dynamically
node.WithNetworkDriver(driver), // FIXME: use a p2p driver instead
node.WithInitConfig(),
node.WithSoftwareCrypto(), // FIXME: use hardware impl if available
node.WithConfig(),
)
if err != nil {
return errors.Wrap(err, "failed to initialize node")
Expand Down

0 comments on commit 4e381d9

Please sign in to comment.