anoma/anoma
Fork: 480 Star: 11500 (更新于 2024-12-21 08:56:26)
license: MIT
Language: Elixir .
Reference implementation of Anoma
最后发布版本: v0.29.0 ( 2024-12-21 00:09:00)
Anoma
This is an implementation of the Anoma protocol, whose specs can be found here.
Docs
- Contributors documentation
- Specification
- Developer Docs (Coming Soon™)
- User Docs (Coming Soon™)
Following Development
Work is merged into base
on a bi-weekly (once every two weeks)
schedule.
Development can be followed in multiple ways:
-
Issues are put into the project overview
- This is a good way to see what work is assigned and the various views into how goals are being met
- What's Cooking on Anoma
-
Research Forums
- This is good for seeing discussions on the direction of Anoma
- The architecture posts in particular are a practical vision for how the codebase's architecture will evolve. Around two of these get posted per week
-
Issues and pull requests
- This is good for viewing new issues and work coming in, but the other views are typically a better way to view this
Running pre-built binaries
Release Dependencies
To run a working Anoma Node the following dependencies are required:
- Mac OS X Development Environment:
- Install Apple Command Line Developer Tools:
xcode-select --install
- Install MacPorts (or equivalent package manager)
- Install Apple Command Line Developer Tools:
- Install ncurses (Mac OS X only)
- Install OpenSSL:
- Mac OS X and Linux: use package manager
- Windows: not required
Running
Download the Anoma release for your platform, extract it, and run bin/anoma
.
Compilation from sources
Build Dependencies
To compile a working Anoma Node the following dependencies are required:
- Mac OS X Development Environment:
- Install Apple Command Line Developer Tools:
xcode-select --install
- Install MacPorts (or equivalent package manager)
- Install Apple Command Line Developer Tools:
- Windows Development Environment:
- Install Build Tools for Visual Studio 2022 (Workload: Visual C++ build tools)
- Install PowerShell
- Install Git (Windows and Linux only)
- Install CMake:
- Linux and Mac OS X: use package manager
- Windows: not required
- Install Sodium (Windows only)
- Ensure that the
LIB
andINCLUDE
environment variables point to this installation
- Ensure that the
- Install Protocol Buffers
- Note: the default protobuf in aptitude is very outdated. Be sure to install it manually.
- Install Elixir (version 1.17.0 or higher) and with it:
- Install Hex package manager
- Install Rebar3
- Install protobuf-elixir:
mix escript.install hex protobuf
- Install Rust (version 1.76.0 or newer)
Compiling and Running
To install the dependencies as well as Anoma run:
mix deps.get
mix escript.install hex protobuf
mix compile
To start an Anoma instance run one of these:
iex -S mix # starts an interactive shell
mix run --no-halt # starts a non-interactive shell
See the Contributing section for how to get the best use of the interactive shell.
Further see the Known issues section if you encounter an issue.
Docker images
To work with Docker images, do the following:
- Install Docker, this is necessary for both building and running Docker images
- Build the Anoma image from the repository root:
docker build -t <IMAGE> .
-
<IMAGE>
is your chosen image name
-
- Run the Anoma image:
docker run -it --network host <IMAGE> <SUBCOMMAND>
-
<IMAGE>
is the name of Anoma Docker image to be run -
<SUBCOMMAND>
is interpreted by the Anoma binary -
--network host
will enable connections from the host
-
Contributing
Please read the contributor's guide for in depth details about the codebase.
Known Issues
(Mix) Could not compile dependency :enacl
For some versions of OSX (and Linux), our enacl package may have compilation issues.
To get around it please run
git checkout mariari/no-libsodium
mix clean
mix deps.get
mix compile
could not compile dependency :cairo, "mix compile"
The rust compiler can be quite picky about our cairo dependencies. This is likely caused by an incompatible rust-toolchain.
To get around it you may have to run a command like:
rustup toolchain add 1.76.0
# for OSX you may try 1.76.0-aarch64-apple-darwin
Once this is had, the Cairo issues should go away.
Git
This codebase follows a git style similar to git or linux.
New code should be based on base
, and no attempt to keep it up to
sync with main
should be had. When one's topic is ready, just submit
a PR on github and a maintainer will handle any merge conflicts.
There are bi-weekly releases, so do not be afraid if a maintainer says
the PR is merged but it's still open, this just means that it's merged
into next
or main
and will be included in the next scheduled
release.
For more information on a smooth git experience check out the git section in contributor's guide
Happy hacking, and don't be afraid to submit patches.
最近版本更新:(数据更新于 2024-12-21 08:30:41)
2024-12-21 00:09:00 v0.29.0
2024-11-23 00:30:39 v0.28.0
2024-11-12 00:55:18 v0.27.0
2024-10-22 02:31:03 v0.25.0
2024-10-15 23:55:55 v0.24.1
2024-10-15 06:14:08 v0.24.0
主题(topics):
blockchain, consensus, cryptography, distributed-systems, elixir, erlang, operating-system, p2p, protocol
anoma/anoma同语言 Elixir最近更新仓库
2024-12-11 03:53:15 electric-sql/electric
2024-11-23 19:38:53 teslamate-org/teslamate
2024-09-07 03:11:29 firezone/firezone
2024-07-07 05:20:46 elixir-lang/elixir
2024-04-11 02:26:13 zoonk/zoonk
2020-06-26 19:06:09 phoenixframework/phoenix