Skip to content

Commit

Permalink
Adicionar arquivos de projeto.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairopaiva committed Oct 30, 2019
1 parent bdc8c2e commit 50a271d
Show file tree
Hide file tree
Showing 12 changed files with 842 additions and 0 deletions.
25 changes: 25 additions & 0 deletions BitcoinExprCracker.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.902
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BitcoinExprCracker", "BitcoinExprCracker\BitcoinExprCracker.csproj", "{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A9088E96-7B3F-4F0E-B420-60E5B6323DB5}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions BitcoinExprCracker/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
74 changes: 74 additions & 0 deletions BitcoinExprCracker/BitcoinExprCracker.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{EFA130F7-552B-46D9-8558-B8C6DEFB5F54}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BitcoinExprCracker</RootNamespace>
<AssemblyName>BitcoinExprCracker</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="BigInteger, Version=1.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\BigInteger.1.0.7\lib\net20\BigInteger.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.1.0.0\lib\netstandard1.1\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
</Reference>
<Reference Include="NBitcoin, Version=4.2.16.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NBitcoin.4.2.16\lib\net452\NBitcoin.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.5.0\lib\netstandard1.1\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Generator\Estrutura.cs" />
<Compile Include="Generator\ExprGenerator.cs" />
<Compile Include="Generator\GeneratorMethods.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
35 changes: 35 additions & 0 deletions BitcoinExprCracker/Generator/Estrutura.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Criado por Jairo Paiva
* https://github.com/jairopaiva
* GNU GPLv3
* */
namespace BitcoinExprCracker.Generator
{
public struct Operação
{
public Variável A;
public Variável B;
public char Operador;
public byte Resultado;
}

public struct Variável
{
public byte Value; // Valor
public int Index; // Index em X ou Y
public char X_Y; // Se pertence a x ou Y

public override string ToString()
{
return Value.ToString();
}
}

public struct ParsedPubKey
{
public byte[] X;
public byte[] Y;
public ulong[] xU;
public ulong[] yU;
public byte[] PublicKey;
}
}
Loading

0 comments on commit 50a271d

Please sign in to comment.