Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
Empty file modified .devcontainer.json
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions .editorconfig
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ indent_size = 2
# Dotnet code style settings:
[*.{cs,vb}]
# "This." and "Me." qualifiers
dotnet_style_qualification_for_field =true:suggestion
dotnet_style_qualification_for_property =true:suggestion
dotnet_style_qualification_for_method =true:suggestion
dotnet_style_qualification_for_event =true:suggestion
dotnet_style_qualification_for_field = true:suggestion
dotnet_style_qualification_for_property = true:suggestion
dotnet_style_qualification_for_method = true:suggestion
dotnet_style_qualification_for_event = true:suggestion

# Language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
Expand Down Expand Up @@ -82,7 +82,7 @@ dotnet_style_null_propagation = true:suggestion
# CSharp code style settings:
[*.cs]
# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,const,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
csharp_preferred_modifier_order = public, private, protected, internal, const, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion

# Implicit and explicit types
csharp_style_var_for_built_in_types = true:suggestion
Expand Down
62 changes: 31 additions & 31 deletions .github/workflows/codeql-analysis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
60 changes: 30 additions & 30 deletions .github/workflows/docker.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build the Docker image
env:
build_tag: ${{ github.run_id }}
run: docker build ${GITHUB_WORKSPACE}/src/BrightChain.API --file src/BrightChain.API/Dockerfile --tag therevolutionnetwork/brightchain:${{ env.build_tag }}
- name: Tag the shortcut repo
env:
build_tag: ${{ github.run_id }}
run: docker build ${GITHUB_WORKSPACE}/src/BrightChain.API --file src/BrightChain.API/Dockerfile --tag brightchain/core:${{ env.build_tag }}
- name: Login to Docker Hub
if: ${{ github.base_ref == 'main' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish
if: ${{ github.base_ref == 'main' }}
env:
DOCKER_REPO_API_SECRET: ${{ secrets.DOCKER_REPO_API_SECRET }}
build_tag: ${{ github.run_id }}
run: docker push therevolutionnetwork/brightchain:${{ env.build_tag }}
- name: Publish shortcut repo
if: ${{ github.base_ref == 'main' }}
env:
DOCKER_REPO_API_SECRET: ${{ secrets.DOCKER_REPO_API_SECRET }}
build_tag: ${{ github.run_id }}
run: docker push brightchain/core:${{ env.build_tag }}
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build the Docker image
env:
build_tag: ${{ github.run_id }}
run: docker build ${GITHUB_WORKSPACE}/src/BrightChain.API --file src/BrightChain.API/Dockerfile --tag therevolutionnetwork/brightchain:${{ env.build_tag }}
- name: Tag the shortcut repo
env:
build_tag: ${{ github.run_id }}
run: docker build ${GITHUB_WORKSPACE}/src/BrightChain.API --file src/BrightChain.API/Dockerfile --tag brightchain/core:${{ env.build_tag }}
- name: Login to Docker Hub
if: ${{ github.base_ref == 'main' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish
if: ${{ github.base_ref == 'main' }}
env:
DOCKER_REPO_API_SECRET: ${{ secrets.DOCKER_REPO_API_SECRET }}
build_tag: ${{ github.run_id }}
run: docker push therevolutionnetwork/brightchain:${{ env.build_tag }}
- name: Publish shortcut repo
if: ${{ github.base_ref == 'main' }}
env:
DOCKER_REPO_API_SECRET: ${{ secrets.DOCKER_REPO_API_SECRET }}
build_tag: ${{ github.run_id }}
run: docker push brightchain/core:${{ env.build_tag }}
58 changes: 29 additions & 29 deletions .github/workflows/dotnet.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Restore dependencies
run: dotnet restore
- name: Build Debug
run: dotnet build -c Debug --no-restore
# TODO:
# - name: CodeCov
# run: .\packages\<ADD PATH>\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\MyUnitTests\bin\Debug\MyUnitTests.dll -noshadow" -filter:"+[UnitTestTargetProject*]* -[MyUnitTests*]*" -output:".\MyProject_coverage.xml"
# - name: CodeCov Process
# run: .\packages\<ADD PATH>\codecov.exe -f "MyProject_coverage.xml"
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Restore dependencies
run: dotnet restore
- name: Build Debug
run: dotnet build -c Debug --no-restore
# TODO:
# - name: CodeCov
# run: .\packages\<ADD PATH>\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\MyUnitTests\bin\Debug\MyUnitTests.dll -noshadow" -filter:"+[UnitTestTargetProject*]* -[MyUnitTests*]*" -output:".\MyProject_coverage.xml"
# - name: CodeCov Process
# run: .\packages\<ADD PATH>\codecov.exe -f "MyProject_coverage.xml"
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Test
run: dotnet test --verbosity normal
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
include-prerelease: true
- name: Test
run: dotnet test --verbosity normal
Empty file modified .github/workflows/generate-docs.yml
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -353,3 +353,6 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

#MAC
.DS_Store
16 changes: 14 additions & 2 deletions .gitmodules
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[submodule "BrightChain.wiki"]
[submodule "docs/articles/BrightChain.wiki"]
path = docs/articles/BrightChain.wiki
url = https://github.com/BrightChain/BrightChain.wiki.git
[submodule "ENT"]
[submodule "src/ENT"]
path = src/ENT
url = https://github.com/FreddieMercurial/ENT.git
[submodule "src/BrightChain.API"]
Expand All @@ -13,3 +13,15 @@
[submodule "src/LUHN-mod-n"]
path = src/LUHN-mod-n
url = https://github.com/BrightChain/LUHN-mod-n.git
[submodule "src/NeuralFabric"]
path = src/NeuralFabric
url = https://github.com/BrightChain/NeuralFabric.git
[submodule "test/NeuralFabric.Tests"]
path = test/NeuralFabric.Tests
url = https://github.com/BrightChain/NeuralFabric.Tests.git
[submodule "src/Shart"]
path = src/Shart
url = https://github.com/FreddieMercurial/Shart.git
[submodule "test/Shart.Test"]
path = test/Shart.Test
url = https://github.com/FreddieMercurial/Shart.Test.git
50 changes: 40 additions & 10 deletions All.sln
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31423.177
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "docs", "docs\docs.csproj", "{A1A13294-9595-468D-964C-2281EAB05A7A}"
ProjectSection(ProjectDependencies) = postProject
{E5DDC909-4F18-47F6-B4C8-517EF29B748E} = {E5DDC909-4F18-47F6-B4C8-517EF29B748E}
{98A946BE-ECA9-46FF-908D-A136588ACFB8} = {98A946BE-ECA9-46FF-908D-A136588ACFB8}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3B1CFD0B-0ED3-48AB-A2E9-54F24DC7BB68}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Expand Down Expand Up @@ -41,16 +35,28 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BBP.FasterKVMiner", "src\BB
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BrightChain.API", "src\BrightChain.API\BrightChain.API.csproj", "{1EE859F7-0070-4D78-87BA-15460888329F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "docs", "docs\docs.csproj", "{1D3E7AEC-8A73-40CC-A576-A524DB2C9564}"
ProjectSection(ProjectDependencies) = postProject
{E5DDC909-4F18-47F6-B4C8-517EF29B748E} = {E5DDC909-4F18-47F6-B4C8-517EF29B748E}
{98A946BE-ECA9-46FF-908D-A136588ACFB8} = {98A946BE-ECA9-46FF-908D-A136588ACFB8}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NeuralFabric", "src\NeuralFabric\NeuralFabric.csproj", "{CACA30DD-770D-4F4E-BD50-F36D1D7120A8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NeuralFabric.Tests", "test\NeuralFabric.Tests\NeuralFabric.Tests.csproj", "{9616CACE-D293-42DC-877D-4F2777AFB550}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shart", "src\Shart\Shart.csproj", "{3EEDF5EC-422F-4B97-A931-682B12A0A6DB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shart.Test", "test\Shart.Test\Shart.Test.csproj", "{37DFCF8D-7D60-4235-9FD6-AA6EE6578B4D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BBP.Test", "src\BBPPiCalculator\BBPPiCalculator\BBP.Test\BBP.Test.csproj", "{0F60EE04-30AF-4EDE-A531-002978E06457}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A1A13294-9595-468D-964C-2281EAB05A7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A1A13294-9595-468D-964C-2281EAB05A7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A1A13294-9595-468D-964C-2281EAB05A7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A1A13294-9595-468D-964C-2281EAB05A7A}.Release|Any CPU.Build.0 = Release|Any CPU
{B654DE7C-E8B7-4D70-A7D6-D843040F9336}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B654DE7C-E8B7-4D70-A7D6-D843040F9336}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B654DE7C-E8B7-4D70-A7D6-D843040F9336}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -83,6 +89,30 @@ Global
{1EE859F7-0070-4D78-87BA-15460888329F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EE859F7-0070-4D78-87BA-15460888329F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EE859F7-0070-4D78-87BA-15460888329F}.Release|Any CPU.Build.0 = Release|Any CPU
{1D3E7AEC-8A73-40CC-A576-A524DB2C9564}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D3E7AEC-8A73-40CC-A576-A524DB2C9564}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D3E7AEC-8A73-40CC-A576-A524DB2C9564}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D3E7AEC-8A73-40CC-A576-A524DB2C9564}.Release|Any CPU.Build.0 = Release|Any CPU
{CACA30DD-770D-4F4E-BD50-F36D1D7120A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CACA30DD-770D-4F4E-BD50-F36D1D7120A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CACA30DD-770D-4F4E-BD50-F36D1D7120A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CACA30DD-770D-4F4E-BD50-F36D1D7120A8}.Release|Any CPU.Build.0 = Release|Any CPU
{9616CACE-D293-42DC-877D-4F2777AFB550}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9616CACE-D293-42DC-877D-4F2777AFB550}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9616CACE-D293-42DC-877D-4F2777AFB550}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9616CACE-D293-42DC-877D-4F2777AFB550}.Release|Any CPU.Build.0 = Release|Any CPU
{3EEDF5EC-422F-4B97-A931-682B12A0A6DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3EEDF5EC-422F-4B97-A931-682B12A0A6DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3EEDF5EC-422F-4B97-A931-682B12A0A6DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3EEDF5EC-422F-4B97-A931-682B12A0A6DB}.Release|Any CPU.Build.0 = Release|Any CPU
{37DFCF8D-7D60-4235-9FD6-AA6EE6578B4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37DFCF8D-7D60-4235-9FD6-AA6EE6578B4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37DFCF8D-7D60-4235-9FD6-AA6EE6578B4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37DFCF8D-7D60-4235-9FD6-AA6EE6578B4D}.Release|Any CPU.Build.0 = Release|Any CPU
{0F60EE04-30AF-4EDE-A531-002978E06457}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0F60EE04-30AF-4EDE-A531-002978E06457}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0F60EE04-30AF-4EDE-A531-002978E06457}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0F60EE04-30AF-4EDE-A531-002978E06457}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Empty file modified BrightChain-LongPaper.pdf
100644 → 100755
Empty file.
Empty file modified BrightChain-One-Pager.pdf
100644 → 100755
Empty file.
12 changes: 5 additions & 7 deletions CONTRIBUTING.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

This project welcomes contributions and suggestions.

Contributions must be free of proprietary intellectual property conflicts, such as violating NDAs
or accidentally contributing material that is substantially identical to IP of an employer.
Contributions must be free of proprietary intellectual property conflicts, such as violating NDAs or accidentally contributing material that
is substantially identical to IP of an employer.

Once committed, code becomes the property of the BrightChain Consortium which has yet to materialize,
but will constitute the shard-holders/board of the original/authentic BrightChain federation/quorum.
Until legal formation, Jessica Mulein is the controlling owner.
Once committed, code becomes the property of the BrightChain Consortium which has yet to materialize, but will constitute the
shard-holders/board of the original/authentic BrightChain federation/quorum. Until legal formation, Jessica Mulein is the controlling owner.

Contributions are protected by the license adopted by this project at the time of first commit.
This is presently Apache 2.0.
Contributions are protected by the license adopted by this project at the time of first commit. This is presently Apache 2.0.
Loading