-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uniffi] Add a
client_config_default
function
This function returns a client config with some simple defaults. Right now, the default is in-memory storage. The new `GroupStateStorageAdapter` struct allows us to use any mls-rs group state storage, so we could easily surface the Sqlite storage as well now.
- Loading branch information
Showing
4 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from mls_rs_uniffi import Client, CipherSuite, generate_signature_keypair, client_config_default | ||
|
||
client_config = client_config_default() | ||
key = generate_signature_keypair(CipherSuite.CURVE25519_AES128) | ||
alice = Client(b'alice', key, client_config) | ||
|
||
group = alice.create_group(None) | ||
group.write_to_storage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters