![Code Server](https://private-user-images.githubusercontent.com/5760385/285989700-a7f19b1a-8052-422c-88c6-ad68cd86eb6d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MTQ3NTUsIm5iZiI6MTcyMzkxNDQ1NSwicGF0aCI6Ii81NzYwMzg1LzI4NTk4OTcwMC1hN2YxOWIxYS04MDUyLTQyMmMtODhjNi1hZDY4Y2Q4NmViNmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTdUMTcwNzM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjM1MzZhMzYxOTQ5YzBjYjBlOTQ0NTQxNzBmMDg1MWIwNDY1Mjc3ZTk0NDA0NDAxM2ZmMjg2Y2M3MDUyODIxYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.UzLnJmbs3sAjM5fGS0-ItUpf69FrA-XNElQv7gJrDuw)
Code server monolith containing the gRPC/web services and workers that power a next-generation payments system. The project contains the first L2 solution on top of Solana, utilizing an intent-based system backed by the Code Sequencer to handle transactions.
Code is a mobile wallet app leveraging self-custodial blockchain technology to provide an instant, global, and private payments experience.
-
Install Go. See the official documentation.
-
Download the source code.
git clone git@github.com:code-payments/code-server.git
- Run the test suite:
make test
The implementations powering the Code ecosystem (Code Wallet App, Code SDK, etc) can be found under the pkg/code/
directory. All other code under the pkg/
directory are generic libraries and utilities.
To begin diving into core systems, we recommend starting with the following packages:
pkg/code/async/
: Asynchronous workers that perform tasks outside of RPC and web callspkg/code/server/
: gRPC and web service implementations
The gRPC APIs provided by Code server can be found in the code-protobuf-api project. Refer to the Code SDK if you want to integrate micropayments into your web application.
To learn more about fundamental concepts and advanced topics related to Code server, we recommend jumping into the Code SDK documentation for a high-level overview. The Extra Topics section includes notes on topics like the Sequencer, Privacy Protocol, Timelock, and more.
Anyone is welcome to make code contributions through a PR.
The best way to share general feedback is on Discord.
This will evolve as we continue to build out the platform and open up more ways to contribute.
If you have any additional questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.