silent_shard_sdk
library
Enums
-
DklsErrorCode
-
-
KeyshareType
-
-
KeyType
-
-
Protocol
-
Protocol is duo or trio, depending on the setup.
duo for the two party setup, one party is cloud node and other is mobile app.
trio for the three party setup, two parties are cloud nodes and one is mobile app.
-
StorageDomain
-
Functions
-
createEcdsaM2MSession({required CloudClient cloudClient, StorageClientInterface<StorageKeyshare>? storageClient, DklsMessageSignerBase? signer, Protocol protocol = Protocol.duo})
→ Future<EcdsaM2MSession>
-
-
createEcdsaSession({required CloudClient cloudClient, required String cloudVerifyingKeyHex, required StorageClientInterface<StorageKeyshare> storageClient, DklsMessageSignerBase? signer, Protocol protocol = Protocol.duo})
→ Future<EcdsaSession>
-
-
ecdsaDuoKeyExport({required DklsKeyshare keyshare, required String serverEncrptedKeyshare, required String serverEncryptionPublicKey, required DklsEncryptionKey clientEncryptionKeys})
→ String
-
Export(Duo) both parties Ekey by merging them and create a private key.
-
ecdsaDuoVerifyBackup({required String backup, required DklsKeyshare keyshare, required String rsaPublicKeyPem, required String label})
→ bool
-
Verify backup(Duo) of the ECDSA keyshare to make sure that you are good to use keyshare.
-
eddsaDuoKeyExport({required SchnorrKeyshare keyshare, required String serverEncrptedKeyshare, required String serverEncryptionPublicKey, required SchnorrEncryptionKey clientEncryptionKeys})
→ Future<String>
-
Export(Duo) both parties key by merging them and create a private key.
-
eddsaDuoVerifyBackup({required SchnorrKeyshare keyshare, required String backup, required String rsaPublicKey, required String label})
→ Future<bool>
-
Verify backup(Duo) of the EdDSA keyshare to make sure that you are good to use keyshare.
-
getRandomBytes(int size)
→ Uint8List
-
-
isKeyshareLatest(Uint8List keyshareBytes)
→ dynamic
-
Checks if the keyshare is latest.
-
schnorrSdkInit()
→ Future<void>
-