Skip to content

Commit dca105c

Browse files
committed
Ed25519 Cryptography Library is now maintained by Bifrost & Logging upgraded to NET8
Solnet will no longer use Chaos.NaCl & now uses a forked version maintained by Bifrost to maximize security across the nuget dependencies and prevent a supply chain attack like what was seen in javascript community. Bouncycastle will be replaced soon as well.
1 parent 031bf37 commit dca105c

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

src/Solnet.Examples/Solnet.Examples.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<PackageReference Include="BifrostSecurity" Version="1.0.1" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<ProjectReference Include="..\Solnet.Extensions\Solnet.Extensions.csproj" />
1216
<ProjectReference Include="..\Solnet.KeyStore\Solnet.KeyStore.csproj" />
@@ -15,8 +19,4 @@
1519
<ProjectReference Include="..\Solnet.Wallet\Solnet.Wallet.csproj" />
1620
</ItemGroup>
1721

18-
<ItemGroup>
19-
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.0" />
20-
</ItemGroup>
21-
2222
</Project>

src/Solnet.KeyStore/Solnet.KeyStore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.0" />
9+
<PackageReference Include="BifrostSecurity" Version="1.0.1" />
1010
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
1111
</ItemGroup>
1212

src/Solnet.Rpc/Models/Transaction.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using Chaos.NaCl;
1+
using Bifrost.Security;
22
using Solnet.Rpc.Builders;
33
using Solnet.Rpc.Utilities;
44
using Solnet.Wallet;
5-
using Solnet.Wallet.Utilities;
65
using System;
76
using System.Collections.Generic;
87
using System.IO;
@@ -63,7 +62,9 @@ public class Transaction
6362
/// </summary>
6463
public string RecentBlockHash { get; set; }
6564

66-
65+
/// <summary>
66+
///
67+
/// </summary>
6768
internal IList<PublicKey> _accountKeys;
6869
/// <summary>
6970
/// The nonce information of the transaction.
@@ -299,7 +300,8 @@ public static Transaction Populate(Message message, IList<byte[]> signatures = n
299300
{
300301
RecentBlockHash = message.RecentBlockhash,
301302
Signatures = new List<SignaturePubKeyPair>(),
302-
Instructions = new List<TransactionInstruction>()
303+
Instructions = new List<TransactionInstruction>(),
304+
_accountKeys = message.AccountKeys
303305
};
304306

305307
if (message.Header.RequiredSignatures > 0)

src/Solnet.Rpc/Solnet.Rpc.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
1717
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1>
1818
</AssemblyAttribute>
19-
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
20-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
19+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
20+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
2121
<ProjectReference Include="..\Solnet.Wallet\Solnet.Wallet.csproj" />
2222
</ItemGroup>
2323

src/Solnet.Wallet/Account.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Chaos.NaCl;
1+
using Bifrost.Security;
22
using Solnet.Wallet.Utilities;
33
using System;
44
using System.Diagnostics;

src/Solnet.Wallet/PrivateKey.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// unset
2-
3-
using Chaos.NaCl;
1+
using Bifrost.Security;
42
using Solnet.Wallet.Utilities;
53
using System;
64
using System.Diagnostics;

src/Solnet.Wallet/PublicKey.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Chaos.NaCl;
1+
using Bifrost.Security;
22
using Solnet.Wallet.Utilities;
33
using System;
44
using System.Collections.Generic;

src/Solnet.Wallet/Solnet.Wallet.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
1212
<_Parameter1>Solnet.Wallet.Test</_Parameter1>
1313
</AssemblyAttribute>
14-
<PackageReference Include="Chaos.NaCl.Standard" Version="1.0.0" />
14+
<PackageReference Include="BifrostSecurity" Version="1.0.1" />
1515
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
1616
</ItemGroup>
1717

src/Solnet.Wallet/Utilities/Utils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Chaos.NaCl;
1+
using Bifrost.Security;
22
using System;
33
using System.Collections.Generic;
44
using System.Security.Cryptography;

src/Solnet.Wallet/Wallet.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Chaos.NaCl;
1+
using Bifrost.Security;
22
using Solnet.Wallet.Bip39;
33
using Solnet.Wallet.Utilities;
44
using System;

0 commit comments

Comments
 (0)