Hashgraph 6.0.0
See the version list below for details.
dotnet add package Hashgraph --version 6.0.0
NuGet\Install-Package Hashgraph -Version 6.0.0
<PackageReference Include="Hashgraph" Version="6.0.0" />
paket add Hashgraph --version 6.0.0
#r "nuget: Hashgraph, 6.0.0"
// Install Hashgraph as a Cake Addin
#addin nuget:?package=Hashgraph&version=6.0.0
// Install Hashgraph as a Cake Tool
#tool nuget:?package=Hashgraph&version=6.0.0
Version 6.0.0 Throw new ContractException for Query Contract Errors
Version 6 introduces two potentially breaking changes. First, the library has removed its dependency on the NSec library. This change has nothing to do with the quality of the NSec library, which has served the project well. However, while adding Smart Contract support to the Hashgraph library, a dependency on the Bouncy Castle project was necessary. Since the Bouncy Castle library also provides Ed25519 support, having references to two security libraries was redundant and the library code was switch to the Bouncy Castle implementation. The associated testing project still relies heavily on the NSec library; and may do so for some time given the ease and utility the NSec library provides in testing.
The second potentially breaking change is the addition of the ContractException
class. The behavior of QueryContractAsync
method has changed. Previous implementations would throw a PrecheckException
for any non-success result returned from the network. However, the network, at times, includes additional error and diagnostics information that cannot be captured in a PrecheckException
. The ContractException
was introduced to communicate this information back to the calling code. Since the information is nearly identical to a ContractCallResult
, and additional flag was also introduced on the QueryContractParams
called ThrowOnFail
that when set to false, the QueryContractAsync
function will always return a ContractCallResult
, regardless of call result (in so far as the query request was accepted by the network and not rejected due to an invalid signature or other typical sources of PrecheckException
s). The default value for ThrowOnFail
is true to align more closely with existing behavior.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- BouncyCastle.NetCoreSdk (>= 1.9.3.1)
- Google.Protobuf (>= 3.12.1)
- Grpc.Core (>= 2.29.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.