Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Solana.Unity.Extensions.Models.TokenMint;
using System;
using System.Globalization;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -74,9 +75,9 @@ internal TokenQuantity(TokenDef tokenDef,
public override string ToString()
{
if (Symbol == TokenName)
return $"{QuantityDecimal} {Symbol}";
return $"{QuantityDecimal.ToString(CultureInfo.InvariantCulture)} {Symbol}";
else
return $"{QuantityDecimal} {Symbol} ({TokenName})";
return $"{QuantityDecimal.ToString(CultureInfo.InvariantCulture)} {Symbol} ({TokenName})";
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Solana.Unity.Extensions.Models.TokenMint;
using System;
using System.Globalization;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -50,9 +51,9 @@ internal TokenWalletBalance(TokenDef tokenDef,
public override string ToString()
{
if (Symbol == TokenName)
return $"{QuantityDecimal} {Symbol}";
return $"{QuantityDecimal.ToString(CultureInfo.InvariantCulture)} {Symbol}";
else
return $"{QuantityDecimal} {Symbol} ({TokenName})";
return $"{QuantityDecimal.ToString(CultureInfo.InvariantCulture)} {Symbol} ({TokenName})";
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Solana.Unity.KeyStore/Solana.Unity.KeyStore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.*" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.*" />
<PackageReference Include="IsExternalInit" Version="1.0.*" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.*" />
<PackageReference Include="Newtonsoft.Json" Version="13.*" PrivateAssets="all" />
Expand Down
2 changes: 1 addition & 1 deletion src/Solana.Unity.Wallet/Bip39/Mnemonic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private static byte[] GenerateSeed(byte[] password, byte[] salt)
{
Pkcs5S2ParametersGenerator gen = new(new Sha512Digest());
gen.Init(password, salt, 2048);
return ((KeyParameter)gen.GenerateDerivedParameters(512)).GetKey();
return ((KeyParameter)gen.GenerateDerivedMacParameters(512)).GetKey();
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Solana.Unity.Wallet/Solana.Unity.Wallet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>Solana.Unity.Wallet.Test</_Parameter1>
</AssemblyAttribute>
<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.*" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.*" />
<PackageReference Include="System.Memory" Version="4.5.*"/>
<PackageReference Include="IndexRange" Version="1.0.*"/>
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.*" />
Expand Down
Loading