sodium 2.0.0
sodium: ^2.0.0 copied to clipboard
Dart bindings for libsodium, for the Dart-VM and for the Web
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.0.0 #
Added #
- Added new
SodiumSumo
class that extends the basic sodium APIs with advanced APIs.- Important: On some platforms this requires you to use a different binary
- The new variant is available via the
package:sodium/sodium_sumo.dart
import and can be initialized withSodiumSumoInit.init
- Added
crypto.scalarmult
as sumo interface for https://libsodium.gitbook.io/doc/advanced/scalar_multiplication - Extended
crypto.sign
as sumo interface
Changed #
- Breaking: Moved the
Sign.skToSeed
andSign.skToPk
methods intoSignSumo
Removed #
- Removed all previously deprecated APIs
1.2.5 #
Fixed #
- Fixed performance issue that caused the "dart -> native" copy process of bytes to take extremely long (#19)
1.2.4 #
Added #
- Let
GenericHashConsumer
implementSink
to allow synchronous adding of data - Let
SignatureConsumer
implementSink
to allow synchronous adding of data - Let
VerificationConsumer
implementSink
to allow synchronous adding of data
Fixed #
- Rename
JsError.wrap
tojsErrorWrap
to prevent problems when debugging JS applications
1.2.1 #
Changed #
- Updated minimum required dart SDK to 1.17.0
- Refactor implementation to make use of newly added ABI-specific integers
- Makes the library more robust on non x64 platforms
- Future-proof if new platforms are added
1.2.0+2 #
Changed #
- Replaced
lint
withdart_test_tools
which makes the default rules oflint
even more strict - Refactored test setup tooling
1.2.0 #
Added #
- Support for 32bit architectures by generalizing the native FFI bindings (#7)
Changed #
- Set minimum required dart SDK version to 2.14
- Updated dependencies
- Upgraded dart ffi language bindings
- Use new callable workflows for workflow simplification
Fixed #
- Fix formatting and linter issues with the newer dart SDK & dependencies
1.1.1 #
1.1.0 #
Added #
SecureKey.split
extension that allows to split one key into multiple (#2)SecureKey.nativeHandle
andSecureKey.fromNativeHandle
to allow passing secure keys across isolate boundariesSodiumInit.init
can now be called withinitNative: false
to disable initialization of the native library, in case it has already been initialized