diff --git a/Substrate.NetApi.Test/Keys/Sr25519Tests.cs b/Substrate.NetApi.Test/Keys/Sr25519Tests.cs index b2d48e9..5bf1782 100644 --- a/Substrate.NetApi.Test/Keys/Sr25519Tests.cs +++ b/Substrate.NetApi.Test/Keys/Sr25519Tests.cs @@ -87,26 +87,5 @@ public void Sr25519SignatureTestComparePolkadotJs(string polkadotJsSignature) var simpleSign2 = Utils.HexToByteArray(polkadotJsSignature); Assert.True(Substrate.NET.Schnorrkel.Sr25519v091.Verify(simpleSign2, keyPairAlice.Public.Key, messageBytes)); } - - [Test] - [TestCase("0x5c42ac4e2d55b8e59d9b255af370de03fe177f5545eecbbd784531cb2eb1f2553e0e2b91656f99fae930eb6ff8ac1a3eca4e19d307ecb39832a479a478a8608a")] - public async Task AccountSr25519SignatureTestComparePolkadotJsAsync(string polkadotJsSignature) - { - var miniSecretAlice = new MiniSecret(Utils.HexToByteArray("0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a"), ExpandMode.Ed25519); - - // var account = Account.Build(KeyType.Sr25519, miniSecretAlice.ExpandToSecret().ToEd25519Bytes(), miniSecretAlice.GetPair().Public.Key); - - // var message = "I test this signature!"; - // var messageBytes = WrapMessage.Wrap(message); - - var signature1 = await Task.Run(() => account.Sign(messageBytes)); - var signature2 = await account.SignAsync(messageBytes); - - Assert.True(account.Verify(signature1, account.Bytes, messageBytes)); - Assert.True(account.Verify(signature2, account.Bytes, messageBytes)); - - var signature3 = Utils.HexToByteArray(polkadotJsSignature); - Assert.True(account.Verify(signature3, account.Bytes, messageBytes)); - } } } \ No newline at end of file diff --git a/Substrate.NetApi.TestNode/ExtrinsicsTest.cs b/Substrate.NetApi.TestNode/ExtrinsicsTest.cs index 2f08408..07299e3 100644 --- a/Substrate.NetApi.TestNode/ExtrinsicsTest.cs +++ b/Substrate.NetApi.TestNode/ExtrinsicsTest.cs @@ -1,13 +1,13 @@ using NUnit.Framework; using NUnit.Framework.Internal; -using Schnorrkel.Keys; +using Substrate.NET.Schnorrkel.Keys; using Substrate.NetApi.Model.Extrinsics; using Substrate.NetApi.Model.Rpc; using Substrate.NetApi.Model.Types; using Substrate.NetApi.Model.Types.Base; using System; using System.Threading; -using Substrate.NET.System.Threading.Tasks; +using System.Threading.Tasks; namespace Substrate.NetApi.TestNode { diff --git a/Substrate.NetApi.TestNode/Substrate.NetApi.TestNode.csproj b/Substrate.NetApi.TestNode/Substrate.NetApi.TestNode.csproj index 846957e..a4dfdb3 100644 --- a/Substrate.NetApi.TestNode/Substrate.NetApi.TestNode.csproj +++ b/Substrate.NetApi.TestNode/Substrate.NetApi.TestNode.csproj @@ -14,6 +14,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive +