RUST Archives - Kaspa https://kaspa.org/category/rust/ Proof-of-Work Cryptocurrency with GHOSTDAG protocol - Maintained, with love by Community Members. Tue, 13 May 2025 13:03:49 +0000 en-US hourly 1 https://kaspa.org/wp-content/uploads/2023/06/cropped-Kaspa-Icon-Dark-Green-on-White-32x32.png RUST Archives - Kaspa https://kaspa.org/category/rust/ 32 32 Kaspa Updates to Crescendo and 10BPS https://kaspa.org/kaspa-updates-to-crescendo-and-10bps/ Mon, 05 May 2025 21:24:59 +0000 https://kaspa.org/?p=53214 The post Kaspa Updates to Crescendo and 10BPS appeared first on Kaspa.

]]>

This event marks the culmination of nearly three years of monumental effort by the core development team, who have undertaken a complete architectural redesign and rewritten Kaspa’s core code from Golang to Rust, focusing on performance optimization across all possible fronts simultaneously. Thanks to this feat, Kaspa will become, by a wide margin, the fastest pure Proof-of-Work (PoW) coin in history, while maintaining the highest level of decentralization and transaction processing and confirmation speed in a permissionless, asynchronous system.

Moreover, this block generation speed, combined with linking blocks not in a chain but in a directed acyclic graph, creates a truly unique multi-leader consensus mechanism. This consensus has the potential to serve as the foundation for achieving the holy grails of crypto: a security budget, MEV (Miner Extractable Value) avoidance, and the implementation of reliable decentralized oracles.

At the same time, the code is written in such a way that running a full Kaspa node is possible on ordinary household PCs with standard internet connections, which is itself a unique feature for crypto projects offering this level of capability. It fully aligns with, and realizes in practice Satoshi’s vision of complete autonomy and self-sovereignty for every network participant, from large corporations and governments to ordinary individuals.

Last but not least, a new WASM interface for RPC requests was created along the way, greatly simplifying how wallets and apps interact with Kaspa nodes. It sparked a surge in Kaspa-compatible wallets, thanks to the sub-team that simultaneously worked on the node’s WASM subsystem and developed the Kaspa-NG wallet (https://kaspa-ng.org/) to replace the retiring Kaspa web and KDX wallets. People are gathering to watch and celebrate the transition online, so join us:

If, for some reason, you haven’t yet upgraded to the hardfork-ready node version, here’s the link to it: https://github.com/kaspanet/rusty-kaspa/releases/latest, and here’s the link to the post-fork working version of the Kaspa-stratum bridge which enables solo mining: https://github.com/aglov413/kaspa-stratum-bridge/releases/tag/v1.3.0

Today, without any doubt, will go down in crypto history as the day when the efforts of human intellect once again proved that the bastions of what seemed impossible inevitably fall under the pressure of talent and selfless dedication!

_____________________________________________________________________________________

X Post excerpts from Lead Developer, Michael Sutton about Crescendo

Kaspa’s 10 bps crescendo upgrade, activated today on mainnet, allows the innovation and scalability of the Ghostdag protocol (@hashdaget al) to truly shine for the first time. While the theory behind this multi‑leader, parallel‑structured DAG protocol has been implemented at 1 bps as well, a 1000‑millisecond block time is still sufficiently above modern internet RTT; thus, by tightening latency and network assumptions one can imagine a linear blockchain structure at 1 bps as well (cf. Solana’s 400 ms block time with a linear structure). Increasing the block rate to 10 per second, achieved by reducing block time to 100 ms (< 200 ms ≈ global RTT), can only be secure with a consensus protocol that inherently allows parallelism = multi‑leader consensus. Passing the RTT threshold is thus a qualitative, not merely a quantitative, leap. Link

A brain dump of all things crescendo, what’s included, what are the benefits… Link

Increasing the block per seconds from 1 to 10 bps while keeping block capacity ~fixed (more on that later). Throughput: obviously, transaction throughput increases. How much? almost tenfold but not exactly 10x. Having more parallel blocks increases the collision rate to some degree.

On TN10 and with current mempool txn selection policy, we observe ~80-90% efficiency (i.e., 80-90% of the txns are unique). If the mempool gets over congested and demand significantly exceeds capacity, this efficiency value goes towards 100%. So to conclude, TPS is increasing 8-9x. The missing info is mainnet average DAG width post-activation vs. today. Mempool policies can be finetuned in the coming future without a hardfork based on such real-world data. Frequency: average block time (=interval between blocks) is being reduced from 1 second to 100 milliseconds. This means blink-of-an-eye txn inclusion time. A transaction need not propagate to the whole network in order to be included; for instance, it can reach miners in its continent in 50ms and get mined after 200ms. The frequency also decreases post-inclusion confirmation times due to the increased density of the mining sampling process. Not to say confirmation times decrease tenfold, because they are now dominated by block latency which hasn’t changed. Rather, by back-of-the-envelope calculations, they have improved 30% (for the advanced: the tail of the Poisson governing worst-case DAG width diminishes faster, thus K can be set relatively lower, from 18 (1bps) to 124 (for 10bps) and not to 180 as one might expect).

Block parallelism: block parallelism increases with the block rate, and that, contrary to what you might think, is good. Despite collisions being slightly increased due to block parallelism, parallelism is crucial for creating a more fair system. It means there isn’t a monopoly of a single winning miner per round, but rather blocks must compete and make wise and competitive decisions within the latency round. The implications can be huge and far-reaching.

Oracle systems and MEV kickback auctions are some of the preliminary efforts. Going more into this is out-of-scope. I also need to justify why finance is becoming more relevant post-crescendo… assuming that’s the case, I think that even without implementing MEV kickback designs explicitly in consensus (yet), the mere intra-round “chaos” of the parallel DAG at 10 bps will already make economic manipulation much harder than in other, leader-based systems.

Other changes included in crescendo. How do I start, there’s so much.

KIP-9 is integrated into consensus, baking our unique state bloat solution inherently into the system. By the way, we call this “harmonic” sub-protocol the name STORM (for STORage Mass). In the process, KIP-9 was extended to include UTXO storage plurality (i.e., taxing a UTXO which consumes more storage appropriately), making it more futureproof.

KIP-10 adds support for basic covenants and additive addresses.

KIP-13 regulates transient storage requirements more strictly. Smart contract-related changes: KIP-14 enables payloads, allowing txns to carry arbitrary data (e.g., smart contract function calls).

KIP-15 is a technically minor upgrade — comprising one line of code — but enables a conceptually meaningful feature, allowing nodes to archive only transactions and prove their sequencing and acceptance trustlessly. This is significant for allowing pre-zk era L2 nodes to store and prove full SC execution to new syncers at a reasonable cost—hence effectively making such systems possible right after crescendo. The change proposed is a tiny subset of the zk design proposal (see Kaspa research forum—based rollups design posts) where such a mechanism was proposed as a necessary requirement for zk systems to operate over Kaspa, and turned out to have significant value also pre-zk. Overall, this means that preliminary SC L2s are possible over post-crescendo Kaspa (or Kaspa 2.0 as @hashdag refers to it internally) with sufficient trust models.

Crescendo is an historical moment in permissionless distributed systems, showing that a multi-leader consensus real-world system can achieve block times shorter than global internet round-trip time (RTT) without artificially suppressing the P2P network size or assuming proximity. Link

 

The post Kaspa Updates to Crescendo and 10BPS appeared first on Kaspa.

]]>
53214
Calling all Kaspa integrations to run a Testnet-10 node https://kaspa.org/calling-all-kaspa-integrations-to-run-a-testnet-10-node/ Mon, 17 Mar 2025 13:46:20 +0000 https://kaspa.org/?p=53049 Overview The Kaspa’s 10BPS network has now been running continuously for nearly a year and the Testnet-10 network has been hardforked to 10BPS. The latest release at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.17.1 contains all […]

The post Calling all Kaspa integrations to run a Testnet-10 node appeared first on Kaspa.

]]>

Overview

The Kaspa’s 10BPS network has now been running continuously for nearly a year and the Testnet-10 network has been hardforked to 10BPS. The latest release at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.17.1 contains all the optimizations that the team has been working this past year. We believe the optimization state of the node is very close to what it will be on mainnet and so our development will now focus on Enhanced User Experience. This is where you, the pools, the exchanges and other integrators come in. We would like to invite you to run a Testnet-10 node and try your pool/exchange/other software on it to check how your integration behaves in the 10BPS network. We would love to hear from you, the good feedback and any opportunities for improvement.

Getting Started

Updating GRPC proto

Make sure that you get the updated message.proto and rpc.proto from the rusty-kaspa repo at https://github.com/kaspanet/rusty-kaspa/tree/master/rpc/grpc/core/proto

Working with TN10 network requires using the latest proto available.

Notably, a new field mass was added to RpcTransaction. If you use GetBlockTemplate and SubmitBlock you need the updated proto to get the values for the mass field in the transactions inside your block template. Then, when you call SubmitBlock you need to make sure that the mass fields remain set. If you’re a pool, your pool is working if it is able to mine blocks with 2 or more transactions on Testnet-10.

Minimum Recommended Specifications

  • 8-core CPU
  • 16 GB RAM
  • 256 GB SSD
  • 5MB network

If you are using a higher-spec node for your mainnet node, please continue to try that same spec out when trying out this node. If you are using specs lower than the above in mainnet, please use at least the above specs for your 10BPS testing.

Note: These minimum recommended specifications are subject to change as we gather feedback from mainnet node operators about their experience running a 10BPS node.

Using the release

Download the binary from the release at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.17.1

To run the node on TN10, use:

./kaspad --utxoindex --testnet --netsuffix=10 --disable-upnp --rpclisten=0.0.0.0

If you’re running your software on the same machine as the node, use --rpclisten=127.0.0.1

Compiling from source

You may want to compile the node from source. To do so, follow the instructions at here to setup the dependencies https://github.com/kaspanet/rusty-kaspa?tab=readme-ov-file#installation

And then run your node with:

cargo run --bin kaspad --release -- --utxoindex --testnet --netsuffix=10 --disable-upnp --rpclisten=0.0.0.0

If you’re running your software on the same machine as the node, use --rpclisten=127.0.0.1

Giving Feedback

We would love to hear your experience, the good and the bad. Please let us know by sending a message on the #testnet channel of the Kaspa Discord

The post Calling all Kaspa integrations to run a Testnet-10 node appeared first on Kaspa.

]]>
53049
TN10 – Crescendo Hardfork Node Setup Guide https://kaspa.org/tn10-crescendo-hardfork-node-setup-guide/ Wed, 05 Mar 2025 00:15:12 +0000 https://kaspa.org/?p=52928 The post TN10 – Crescendo Hardfork Node Setup Guide appeared first on Kaspa.

]]>

Kaspa Testnet 10 (TN10) – Crescendo Hardfork Node Setup Guide

Kaspa is about to take a significant leap with the Crescendo Hardfork, as detailed in KIP14, transitioning from 1 to 10 blocks per second. To ensure a stable rollout, Testnet 10 (TN10) will first undergo this shift on approximately March 6, 2025, 18:30 UTC. By running TN10 and providing feedback, you help prepare for a smooth mainnet upgrade, tentatively planned for the end of April or early May.

Important Note:

  • Version 0.17.0 does not support TN11. Some participants should keep TN11 nodes running on the latest stable release or stablebranch until TN10’s performance is proven stable.

Recommended Hardware Specifications

  • Minimum:

    • 8 CPU cores
    • 16 GB RAM
    • 256 GB SSD
    • 5 MB/s (or ~40 Mbit/s) network bandwidth
  • Preferred for Higher Performance:

    • 12–16 CPU cores
    • 32 GB RAM
    • 512 GB SSD
    • Higher network bandwidth for robust peer support

While the minimum specs suffice to sync and maintain a TN10 node with the accelerated 10 bps, increasing CPU cores, RAM, storage, and bandwidth allows your node to serve as a stronger focal point on the network. This leads to faster initial block download (IBD) for peers syncing from your node and provides more leeway for future storage growth and optimization.


1. Install & Run Your TN10 Node

  1. Obtain Kaspa 0.17.0 binaries
    Download and extract the official 0.17.0 release, or build from the master branch by following the instructions in the project README.

  2. Launch the Node
    While TN10 is the default netsuffix, specifying it explicitly is recommended:

    kaspad --testnet --netsuffix=10 --utxoindex
    

    (If running from source code:)

    cargo run --bin kaspad --release -- --testnet --netsuffix=10 --utxoindex
    

Leave this process running. Closing it will stop your node.

  • Advanced Command-Line Options:
    • --rpclisten=0.0.0.0 to listen for RPC connections on all network interfaces (public RPC).
    • --rpclisten-borsh for local borsh RPC access from the kaspa-cli binary.
    • --unsaferpc for allowing P2P peer query and management via RPC (recommended to use only if not exposing RPC publicly).
    • --perf-metrics --loglevel=info,kaspad_lib::daemon=debug,kaspa_mining::monitor=debug for detailed performance logs.
    • --loglevel=kaspa_grpc_server=warn for suppressing most RPC connect/disconnect log reports.
    • --ram-scale=3.0 for increasing cache size threefold (relevant for utilizing large RAM; can be set between 0.1 and 10).

2. Generate Transactions with Rothschild

  1. Create a Wallet
rothschild

This outputs a private key and a public address. Fund your wallet by mining to it or obtaining test coins from other TN10 participants.

  1. Broadcast Transactions
rothschild --private-key <your-private-key> -t=10

Replace with the key from step 1. The -t=10 flag sets your transaction rate to 10 TPS (feel free to try different rates, but keep it below 50 TPS).


3. Mining on TN10

  1. Download the Miner
    Use the latest Kaspa CPU miner release which supports TN10.

  2. Start Mining

kaspa-miner --testnet --mining-address <your-address> -p 16210 -t 1

Replace with your TN10 address (e.g., from Rothschild) if you want to mine and generate transactions simultaneously.


Summary & Next Steps

  • Node Sync:
    kaspad --testnet --netsuffix=10 --utxoindex
  • Transaction Generation:
    rothschild --private-key <your-private-key> -t=10
  • Mining:
    kaspa-miner --testnet --mining-address <your-address> -p 16210 -t 1

By participating in TN10, you help stress-test the Crescendo Hardfork environment and prepare for a robust mainnet upgrade in end of April / early May. Share any challenges or successes in the #testnet Discord channel, and thank you for supporting Kaspa’s continued evolution.

The post TN10 – Crescendo Hardfork Node Setup Guide appeared first on Kaspa.

]]>
52928
Stable Release v0.16.0 is out! https://kaspa.org/stable-release-v0-16-0-is-out/ Wed, 29 Jan 2025 19:31:53 +0000 https://kaspa.org/?p=52525 Stable Release version v0.16.0 is now available at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.16.0 This release contains several optimizations that are expected to significantly improve performance and reduce CPU, storage and RAM consumption for mainnet […]

The post Stable Release v0.16.0 is out! appeared first on Kaspa.

]]>
Stable Release version v0.16.0 is now available at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.16.0

This release contains several optimizations that are expected to significantly improve performance and reduce CPU, storage and RAM consumption for mainnet node operators.

Some of the optimizations included are:

  • Parallel Muhash
  • Parallel transaction input processing
  • Optimized header validation, reducing storage footprint which affects pruning as well

Initial Block Download (IBD) times have been observed to complete in as low as 15 minutes with these changes in place.

Important Note for Mainnet Node Operators

This is the first stable release that includes the database version upgrade introduced in #494. When you run this version with an existing datadir, you may be asked to upgrade your database version in CLI. To proceed, type y or yes and hit enter. Alternatively, you can run this version with a –yes flag to skip the interactive question.

This database upgrade is a one-way path, which means after updating your datadir to the new version, you won’t be able to go back to an earlier version.

It is strongly recommended that you upgrade to this version at your earliest convenience and definitely before the Crescendo hardfork version.



The post Stable Release v0.16.0 is out! appeared first on Kaspa.

]]>
52525
Enhanced User Experience Stage: We Need You! https://kaspa.org/enhanced-user-experience-stage-we-need-you/ Thu, 09 Jan 2025 13:52:57 +0000 https://kaspa.org/?p=52434 The post Enhanced User Experience Stage: We Need You! appeared first on Kaspa.

]]>

Overview

The Testnet-11 (TN11) 10BPS network has now been running continuously for nearly a year. The latest testnet-11 release at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.15.4-rc1 contains all the optimizations that the team has been working this past year. We believe the optimization state of the node is very close to what it will be on mainnet and so our development will now focus on Enhanced User Experience. This is where you, the pools, the exchanges and other integrators come in. We would like to invite you to run a testnet-11 node and try your pool/exchange/other software on it to check how your integration behaves in the 10BPS network. We would love to hear from you, the good feedback and any opportunities for improvement.

Getting Started

Updating GRPC proto

Make sure that you get the updated message.proto and rpc.proto from the rusty-kaspa repo at https://github.com/kaspanet/rusty-kaspa/tree/master/rpc/grpc/core/proto
Working with the TN11 network requires using the latest proto available.

Minimum Recommended Specifications

  • 8-core CPU
  • 16 GB RAM
  • 256 GB SSD
  • 5MB network

If you are using a higher-spec node for your mainnet node, please continue to try that same spec out when trying out this node. If you are using specs lower than the above in mainnet, please use at least the above specs for your TN11 testing.

Note: These minimum recommended specifications are subject to change as we gather feedback from mainnet node operators about their experience running a TN11 node.

Using the release

Download the binary from the release at https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.15.4-rc1

To run the node on TN11, use:

./kaspad --utxoindex --testnet --netsuffix=11 --disable-upnp --rpclisten=0.0.0.0

If you’re running your software on the same machine as the node, use --rpclisten=127.0.0.1

Compiling from source

You may want to compile the node from source. To do so, follow the instructions at here to setup the dependencies https://github.com/kaspanet/rusty-kaspa?tab=readme-ov-file#installation
And then run your node with:

cargo run --bin kaspad --release -- --utxoindex --testnet --netsuffix=11 --disable-upnp --rpclisten=0.0.0.0

If you’re running your software on the same machine as the node, use --rpclisten=127.0.0.1

Giving Feedback
We would love to hear your experience, the good and the bad. Please let us know by sending a message on the #testnet channel of the Kaspa Discord

The post Enhanced User Experience Stage: We Need You! appeared first on Kaspa.

]]>
52434
Unveiling the “Crescendo” Hard-Fork roadmap — 10BPS and more https://kaspa.org/crescendo-hard-fork-roadmap-10bps/ Mon, 19 Aug 2024 21:44:58 +0000 https://kaspa.org/?p=51474 The post Unveiling the “Crescendo” Hard-Fork roadmap — 10BPS and more appeared first on Kaspa.

]]>

Written by Michael Sutton
With the help of coderofstuff, Shai Wyborski and others

With the successful deployment of the Rusty Kaspa (RK) node software (stable release), and its broad adoption by Kaspa’s P2P network and mining community (~97% of Kaspa blocks are mined via RK nodes), the core open-source development team is now starting to prepare for a hard-fork¹ that will, among other things², increase the block rate of the network from 1 to 10 blocks-per-second (BPS). In this post, I outline the tentative roadmap for the upcoming hard-fork, hereby named the Crescendo, what it will likely include, and the process of deploying it.

Overview

At a high level, here’s how we envision the steps needed to implement such an acceleration on Kaspa’s main network. The process involves the following iterative phases:

  • Launch & stabilize: Launch a testnet with the desired block rate and related network settings, and work on stabilizing it. This has been accomplished with TN11, the existing 10-BPS Kaspa testnet, which has been operational since January 7, 2024. (Done)
  • Identify bottlenecks: Iteratively identify processing bottlenecks and make performance optimizations to lower the hardware specifications required for running a node. (Done)
  • Iterative improvement: Repeat the above until the minimal specs are affordable enough and low enough to satisfy the decentralization required for the mainnet. (We are here, getting close to the convergence of this optimization loop. Approximate timeline: ~2 months from now.)
  • Enhanced user experience: Once performance requirements are settled, perfect the node software to the level of user experience required by mainnet operators. That is, some minor problems that can be neglected in a testnet setting need to be addressed here (~3 months from now). (Next)
  • Additional features: Implement any additional hardfork features and deploy them on TN11. (Target timeline: ~4–5 months from now. Some features might be excluded to fit the timeline.)
  • Feature freeze.
  • Hardfork version: Implement the hardfork transitioning version
  • Deploy transition testnet: Deploy the transition version on TN10 (1 BPS testnet) to simulate the mainnet transition.
  • Mainnet deployment with hardfork transitioning activated 1–2 months later

A more detailed walkthrough

Currently, RK developers are busy with preparing a mainnet version that is focused on introducing many mempool features whose necessity was detailed by the KRC-20 beta launch. These include delicate features such as RBF (replace-by-fee) and a fee estimation API, both of which require careful work with ecosystem developers.

After this version is released³, focus will shift to creating a performance oriented version meant to stabilize TN11 nodes. This version will be used to align TN11 participants behind a version which hopefully solves all current processing bottlenecks and provides a smooth operation of the network as a whole.
The main bulk of work would be to merge the following existing PRs:

After these features are merged, TN11 will be rolled out with this new version, and run under maximum load for a few weeks. This will allow us to understand the system requirements required to run such a node. If the minimal system requirements are deemed too high, some parameters (such as difficulty adjustment window size and sample rates, finality depth, etc) will have to be adjusted, followed by a few more weeks of testing. Alternatively, further performance cycles might be considered.

During the testing period, work will resume on some other features including:

  • Improving and perfecting the IBD process, addressing some edge-cases in the new node sync process that are extremely rare on mainnet, but will be exacerbated with higher BPS and shorter pruning periods.
  • Improvements of finality rules and new node headers-proof validation process (KIP7, KIP8).
  • Cryptographic receipts (KIP6), a modification that allows a much smaller and simpler proof that an arbitrarily old transaction was confirmed.
  • Enabling transaction payloads, which will streamline specifications such as KRC-20.

Once all of the above is completed, we can start with the process of writing a mainnet version of this hard-fork. This version will have to include the logic for transitioning from the current protocol parameters to the new ones. This is an intricate process that will have to be heavily tested and involves making some crucial decisions such as when the HF will go into effect, and whether it should be done gradually or in one hit.

We emphasize that the plan outlined above is tentative. The purpose of this post is not to present a finalized, set-in-stone roadmap, but to highlight that the 10BPS hard-fork is the next major focus for the core team and that significant effort will be devoted to meeting this target. Above all, our guiding principles remain unchanged: network security and stability, and allowing sufficient time for the ecosystem to adapt. In the same spirit, we note that while the above details pertain to the responsibilities of the core developers, the broader ecosystem - including wallet developers, pools, exchanges, block explorers, and others - will also need to make adjustments, and should actively engage in this effort by testing their software components via the 10-BPS testnet.

¹In our context, “hard-fork” refers to a community-agreed and scheduled change in the consensus protocol, rather than a contentious fork resulting from disagreements within the network.

²None of the changes included in this hard-fork will affect user funds or the emission schedule. The increase to 10 BPS will result in ten times more rewards, but the reward per block will be reduced by the same factor, maintaining the same emission rate per second.

³A mempool-focused mainnet release candidate version is expected by the end of this week (~August 25th).

The post Unveiling the “Crescendo” Hard-Fork roadmap — 10BPS and more appeared first on Kaspa.

]]>
51474
Rusty Kaspa makes integrations with ecosystem developers more accessible https://kaspa.org/rusty-kaspa-makes-integrations-with-ecosystem-developers-more-accessible/ Wed, 15 May 2024 20:25:59 +0000 https://kaspa.org/?p=50815 Community and development ecosystem participation has been the core design motivation of Rusty Kaspa (RK) since its inception. Aspect, known for his contributions to the Kaspa ecosystem through the KDX […]

The post Rusty Kaspa makes integrations with ecosystem developers more accessible appeared first on Kaspa.

]]>
Community and development ecosystem participation has been the core design motivation of Rusty Kaspa (RK) since its inception. Aspect, known for his contributions to the Kaspa ecosystem through the KDX app and web wallet, took this to the next level with his work on the KNG and WASM integrations. These enhancements improve how external systems interact with the network. The release of KNG, the WASM SDK, and the stable version of RK marks a significant step in Kaspa’s evolution.

Initially focused solely on pushing the boundaries of node performance to the absolute limit, RK’s development was shifted to better plan and execute its architecture making integrations with ecosystem developers more accessible. This “accessibility” effort has shaped into two verticals:  increasing network decentralization by simplifying node maintenance and personal wallet management (KNG), and allowing ecosystem developers to focus on their business logic rather than on integrations and ever-duplicated transaction logic (WASM SDK).

KNG, the advanced successor to KDX, supports numerous node and network configurations. It provides live metrics and block-DAG visualizations, and a comprehensive wallet framework built entirely on the RK codebase. 

The WASM SDK reforms the developer experience by exposing essential Rust modules to the web software stack in the form of Javascript and Typescript APIs. This includes sophisticated wallet interfaces, address management, cryptographic libraries, a public P2P node resolver and a RPC client. 

Both KNG and the WASM SDK are strategically designed to streamline development processes and promote innovation within the Kaspa ecosystem. These tools reduce technical barriers and also empower developers and enthusiasts. By providing a more efficient development environment, they aim to attract a diverse range of contributors, all of whom can contribute to the network’s growth and stability.

KNG link: https://github.com/aspectron/kaspa-ng/releases/tag/v0.2.5
WASM SDK link: https://github.com/kaspanet/rusty-kaspa/releases/tag/v0.14.1 (an integral part of RK release)

The post Rusty Kaspa makes integrations with ecosystem developers more accessible appeared first on Kaspa.

]]>
50815
Kaspa Developer Spotlight – Coder of Stuff https://kaspa.org/kaspa-developer-spotlight-coder-of-stuff/ Tue, 19 Mar 2024 23:10:06 +0000 https://kaspa.org/?p=50522 The post Kaspa Developer Spotlight – Coder of Stuff appeared first on Kaspa.

]]>

Written by Shai Wyborski

Hi $kas, meet @coderofstuff_ from the rusty crew! Coder is a self-taught developer in the Great White North working in the tech industry for over a decade. Coder started making contributions to the Kaspa echosphere since as early as 2022, around mid 2023, he made his first contribution to the rust code base, and has been growingly involved ever since.

Coder was first compelled to contribute by one of the most powerful powers known to man: irritation. The only block explorer available at the time was far from optimized, providing slow loading times of up to 10 seconds, a terrible annoyance for users and miners who want to keep track of their balance. Coder decided to take the initiative. He analyzed the causes for the slowdown, and worked with Rob (lAmeR1 on Discord) to put up a pull request that greatly improved the waiting times. This first contribution compelled him to use his skillset to help out and make things better for himself and the community in general. Among his contribution to the community is a CSV report generator (https://kaspa-transaction-report.vercel.app/) and an ASIC ROI calculator (https://kas-breakeven-calc.vercel.app/) as well as a long list of fixes, reviews and improvements to preexisting ecosystem software. Coder also supports third party integrations of exchanges, wallets and pools. He supported the integrations of Kaspa into Uphold, ByBit, OKX web3 wallet, XT, Poloniex, Antpool and more.

I asked Coder to choose the favourite three of his many contributions.

Third favorite: Local address management
This contribution fixes an issue (discovered in the first run of TN11) that prevented nodes from sharing their addresses, harming network discoverability and connectivity. It also lays the foundation for the client address management.
While not the most impressive contribution under Coder’s belt, he is particularly fond of it because it was his first contribution to the Rusty-kaspa codebase.
Relevant PRs:
https://github.com/kaspanet/rusty-kaspa/pull/222
https://github.com/kaspanet/rusty-kaspa/pull/227
https://github.com/kaspanet/rusty-kaspa/pull/230

Second favorite: Optimize P2P block processing latency
Whenever a block is added to the DAG, it goes a long process. A part of the process is validating the block, but there are many other time consuming tasks that follow, such as computing the GHOSTDAG ordering. In the old design, a node will only transmit the block to its peers once this process is done. This means that blocks are retransmitted much later than they could have. In 1BPS, this is not an issue, but in 10BPS this added latency becomes noticeable. This contribution refactors the block processing pipeline so that blocks are retransmitted as soon as possible.
Coder likes this contribution because it is the first contribution that required him to understand how the block processing mechanism works, and some of the components of Kaspa’s complicated consensus layer.
Relevant PR:
https://github.com/kaspanet/rusty-kaspa/pull/295

Favorite: Transaction relay throttling on high P2P load
This contribution implements the logic that limits the resources available to the peer-to-peer network when loads get high (such as when a lot of people are running Rothschild).
Coder likes this contribution because it was highly important for making Testnet 11 run smoothly, and because it was a chance to take relevant load off @MichaelSuttonIL so he could focus on other things.

Alongside direct contributions to the Rusty kaspa client, Coder is driving the work to get Rust 1BPS onto mainnet, negotiating with 3rd parties and helping them out to try their tools on the rust node.

Besides contributing code, Coder fosters an impressive habit of reviewing all changes and additions to the codebase (which anyone who ever worked on a large codebase would know is extremely impressive). He does so to maintain a broad and deep understanding of the codebase, and in doing so he improves on the already stringent code-review standard the Rusty crew is committed to. He is also devoted to tracking all node-related issues that come up in discussions, so that they could be tackled down the line.

Coder was first exposed to Kaspa by following @SonOfATech, finding that the Kaspa mining content piqued his curiousity. In his words: “The reasons SOAT mentioned for why Kaspa was different from other coins stuck to me: “It (Kaspa) has pedigree in the developers. It’s built from the ground up – it’s not a fork. It has a specific use case – speed of transactions”. I was just a hobbyist miner back then (still am), so anything that was green that had a chance of making profits was interesting to me. I joined the Kaspa Discord, put my mining rigs on Kaspa and started immersing myself with the tech.”

When asked about his motivations to do so, Coder states two of them: “I have stake in the coin because I was mining and holding it too, so I might as well do what I can to try to improve things. My other motivation for contributing is the continuous learning that comes with it. Reading the code base and working with really big-brained folks pushes me to improve further. I joined for the mining, but I stayed for the learning.”

Coder’s word of advice for upcoming developers who want to get involved with Kaspa are: “even if you don’t have all the skills yet, you can start immersing yourself by:
1. Trying to compile the rust codebase locally,
2. Going over GitHub Issues and Pull Requests in different Kaspa project repositories, and
3. Going over to Discord and checking the messages that come up in #research and #development channels.

Salamat!”

If you want to follow Coder’s work, keep on eye on his Github profile:
HTTPS://github.com/coderofstuff

The post Kaspa Developer Spotlight – Coder of Stuff appeared first on Kaspa.

]]>
50522
Kaspa: Accelerating Beyond the Blockchain https://kaspa.org/kaspa-accelerating-beyond-the-blockchain/ Sun, 17 Mar 2024 18:43:36 +0000 https://kaspa.org/?p=50498 The post Kaspa: Accelerating Beyond the Blockchain appeared first on Kaspa.

]]>

From a Concept to a Cutting-Edge Deployment

An Evolution, Not a Replication

Those who follow Kaspa understand the monumental work the developers are undertaking. It’s far from just another entry in the crowded space of crypto-nonsense; it’s not another Bitcoin clone, meme token, or even a blockchain; it’s a project set on a course to redefine the foundations of crypto technology and, by extension, the financial ecosystem.

Yet, there’s a narrative out there, fueled by a mix of misunderstanding, hype, and the fast-paced expectations common in the crypto world, that paints Kaspa’s progress as slow. But let’s be clear: The past eighteen months have been anything but stagnant for Kaspa. This period has been marked by a genuine push towards innovation, the application of cutting-edge scientific methods, and significant advancements, all of which together define the Kaspa standard.

A group of approximately 20 developers is central to this transformative journey. Through their collaborative efforts, Kaspa has experienced significant changes in its operations, carving a path for a future where scalability and efficiency in crypto are optimized and expected.

This rapid evolution and substantial work achieved in just a year and a half spotlight the commitment and expertise behind Kaspa, challenging any notions of slow progress and emphasizing the project’s role in setting new benchmarks for technological excellence in the cryptosphere.

The Rust Rewrite

In what’s commonly referred to as the Rust rewrite, the developers have realized a comprehensive overhaul of Kaspa’s codebase. To describe this effort as merely a ‘rewrite’ would be to undersell its magnitude; it was, in reality, a complete reconstruction, outstanding in its approach and execution. The mission extended beyond routine updates or refinements; it’s a visionary goal to reimagine Kaspa’s architecture from scratch. This foundational revamp demanded technical understanding and a profound reevaluation of Kaspa’s core principles, ensuring the revamped codebase would reflect and amplify these foundational ideals.

Throughout this intricate process of the Rust rewrite, the developers thoroughly examined each line of code, aspiring to transcend the established benchmarks of efficiency, scalability, and reliability set by the previous Go standards, pushing the envelope of blockDAG technology and setting new precedents for the future. A critical element of this overhaul was guaranteeing a seamless transition from the existing Go-based system with the Rust implementation, syncing at 1 block per second (BPS) to ensure backward compatibility. This is a critical move to provide a frictionless evolution and ongoing network functionality, laying a solid and versatile codebase for ramping up the Rust version to an insane 10 BPS. This exhaustive reconstruction reimagines Kaspa’s technological basis. It has also opened doors to a vast network of untapped potential, limited solely by the collective imagination of the Kaspa community.

Innovating Network Performance

While going into full detail of this major transition is beyond the scope of this article, here are some highlights to underscore the magnitude of the work involved.

Kaspa comprehensively reworked the mempool alongside significant segments of the network’s validation logic and difficulty adjustment algorithms – a re-engineered design to embrace throughputs that were once deemed unfeasible. With unprecedented grace, the Kaspa network is now adept at managing an influx of transactions, upwards of 500,000 pending transactions, establishing a new high-water mark for throughput within proof-of-work.

 

 

Streamlining API

Understanding the pivotal role seamless integration plays in widespread adoption, the Kaspa developers have thoroughly retooled the API. An endeavor that aims to simplify the developer interface, rendering it more intuitive and accessible. The outcome is an API that offers enhanced flexibility and power and significantly lowers the entry barrier for developers and integrators, promoting a more inclusive Kaspa ecosystem.

 

 

Embracing WebAssembly

In a strategic pivot towards the future, Kaspa has embraced WebAssembly (WASM), laying the foundation for progressive applications like the Kaspa Next Generation (KNG) — which I have dubbed Kaspa’s New Groove. This enhancement widens the scope of potential applications for Kaspa — another shift towards more user-centric network interactions and bringing with it the future with browser extensions.

 

 

Addressing UTXO Bloat

Kaspa has addressed the challenge of UTXO set bloat, a concern related to the increasing storage demands on full nodes caused by the growing database of unspent transaction outputs (UTXOs). This issue impacts storage requirements and hinders the efficiency of syncing new nodes to the network, as larger UTXO sets can slow down the process significantly. By devising innovative strategies to mitigate this problem, Kaspa is lowering the entry barrier and creating a more scalable and efficient network. An upcoming paper outlining their solutions will explore more details on this approach.

Transitioning to Rust

As you read, Kaspa is initiating the implementation of Rust on the mainnet, beginning with about 3–5% of its hash power. It’s worth noting the meticulous planning behind this transition. This careful migration from 1 BPS in Go to 1 BPS in Rust isn’t an upgrade; it’s more of a bridge, ensuring that Kaspa’s new design translates seamlessly from theory to practice within the live network.

This phase is crucial for the technical shift and maintaining the network’s integrity and user confidence. The quiet and controlled approach to moving hash power was deliberate, aiming to manage this significant change with precision and to be prepared for any contingencies. This decision recognizes that a successful deployment in cryptocurrency requires a well-planned integration of new features without disrupting the existing ecosystem.

If Kaspa had not already been a project valued in the billions, the push towards the mainnet might have come sooner. Yet, the scale of the project demands a cautious, controlled approach. This approach distinguishes the careful deployment from the creative development.

Development is the creative phase, where new ideas are born and tested in a safe environment, allowing for innovation without immediate real-world impact. Deployment, however, involves integrating these innovations into the live network. This process demands cautiousness to maintain stability, security, and efficiency. This method ensures that Kaspa continues to lead in innovation and guarantees a stable and scalable network for its users, balancing introducing new features with the imperative of preserving network integrity.

TN11

Also, it’s important to note that Kaspa’s TN11 has been operating at an impressive 10 BPS since the beginning of 2024.

KNG Visualizer — TN 11

Diving into 10 BPS in a world-scale peer-to-peer system, as evidenced by the development and deployment of TN11, Kaspa has ventured into previously unexplored territories of crypto technology. Achieving this level of implementation was a giant leap into new cutting-edge territory that necessitated pushing the boundaries of concurrency in computation and communication to their absolute limits. The complexity of producing such a high-throughput system, where every millisecond counts, demanded unparalleled precision in the design and execution of Kaspa’s network protocols.

This initiative of high-frequency block production upends how blockchain networks operate at scale. The engineering challenge here is profound — there’s a critical threshold where the system’s components must synchronize flawlessly. Any deviation, no matter how minor, can lead to cascading failures, transforming minor hiccups into major disruptions. The Kaspa developers’ ability to navigate this tightrope, ensuring that every part of the network operates in perfect harmony, emphasizes the technical prowess and innovative spirit driving the project forward.

Kaspa’s Testnet 11 has proven formidable in demonstrating stability, security, and speed. It operates at 10 BPS while managing a transaction throughput of 3,000 TPS and handles a mempool queue of over 500,000 transactions with remarkable stability.

 

 

Kaspa Delivers

All of this plus more, in a relatively short span of eighteen months, Kaspa has undergone a metamorphosis that is the envy of many projects (proven by the seemingly endless forks). The Kaspa developers have achieved remarkable advancements with unwavering dedication and a visionary future transcending current crypto horizons. It’s important to remember that Kaspa isn’t just progressing; it’s leading the charge, reigniting the foundational crypto vision of a decentralized, efficient, and open financial system that once sparked the inception of Bitcoin.

 

Tip: Check the Block DAG tab on the top of the https://kaspa-ng.org/ page to see the visualizer.

KASPA | KASPA WIKI | MEDIUM | TELETYPE | DISCORD | TELEGRAM

TWITTER | GITHUB | N. R. Crowningshield | Bubblegum Lightning

The post Kaspa: Accelerating Beyond the Blockchain appeared first on Kaspa.

]]>
50498
Kaspa 2023 – Past, Present, and Future https://kaspa.org/kaspa-2023-past-present-and-future/ Mon, 29 Jan 2024 15:16:04 +0000 https://kaspa.org/?p=50185 Stepping Into 2023 As the final curtain fell on 2022, giving way to the dawn of 2023, Kaspa emerged not merely as another player in crypto but as a burgeoning […]

The post Kaspa 2023 – Past, Present, and Future appeared first on Kaspa.

]]>
Stepping Into 2023

As the final curtain fell on 2022, giving way to the dawn of 2023, Kaspa emerged not merely as another player in crypto but as a burgeoning juggernaut equipped with sci-fi futuristic blockDAG technology. A game-changing architecture ready to shake the norm of traditional blockchain foundations. Its ambition was audacious, aiming to tackle the notorious blockchain trilemma by striking a delicate equilibrium among speed, security, and scalability.

In those embryonic days of 2023, the landscape of the Kaspa community bore a starkly different vibe compared to its later evolution. This initial cadre was a tight-knit crew of tech enthusiasts and forward-thinkers, united by a shared vision of what Kaspa could be — as opposed to the more moment-focused community we see today. The ripple effects of the Ethereum merge were still reverberating, setting the stage for a significant migration of GPU miners in search of fresh pastures following their upheaval. At the same time, the early murmurs of FPGA miners began to surface, hinting at the rise of a new titan in the mining domain and heralding a seismic shift in hashrate and exposure.

This era was pivotal for myriad reasons. It witnessed watershed moments like the Rust rewrite crowdfund — a move that signified more than an upgrade; it was the metamorphosis of Kaspa’s soul. The unveiling and crowdfunding of the DAG KNIGHT, a protocol that will catapult Kaspa into the forefront of cryptocurrency and computer science breakthroughs. The foray into its first mainstream exchange listing with MEXC underscored the community’s unwavering dedication to charting new courses for Kaspa. Amidst a sea of speculations about its path forward, forecasts remained as erratic as the markets in the unpredictable world of cryptocurrency. I don’t know if many foresaw Kaspa’s miraculous success within the parameters of this year. I know me and my crystal ball didn’t see it.

Early Ambitions

As 2023 kicked off, Kaspa hit the ground running, each step imbued with deliberate vigor. The community swelled with miners, traders, enthusiasts, and holders, each adding their unique spark to the Kaspa macrocosm. This surge brought an urgent call for more platforms like MEXC to trade and engage with Kaspa, setting the stage for an unprecedented push toward new exchange listings.

Petitions for Kaspa’s inclusion flooded the inboxes of virtually every top 50 exchange listed on CoinMarketCap. Also important to note that, during this phase, Kaspa’s crypto ranking was only accurately recognized on CoinGecko. A detail that only stoked the community’s fire, turning the quest for proper listing on CoinMarketCap into a symbol of broader recognition and legitimacy.

The Kaspa community, a close-knit and strategic force, dove into a series of crowdfunded campaigns, aiming to secure spots on key exchanges like Uphold, Bitget, and KuCoin. Integrating Kaspa onto these platforms was no small feat, demanding extensive time, technical support, marketing push, and manpower. More than just milestones, the listings were crucial in boosting Kaspa’s accessibility and liquidity, both vital for the lifeblood of any crypto. Especially one that prioritizes operating as a decentralized everyday currency.

An innovative turn in branding and marketing was the birth of a crowdfund spearheaded by the @Rhubarbarian. Under his leadership, this fund was dedicated to amplifying Kaspa’s marketing outreach and broadening its horizon. The Community Marketing Fund (CMF) was focused on fueling Grassroots and Organic (GRO) marketing activities and strategic boots-on-the-ground operations, underlining the community’s commitment to carving a prominent space for Kaspa worldwide.

A standout moment during this period was the Tangem and OneKey initiatives. Given Kaspa’s roots in community governance and crowdfunded nature, the constant drumbeat of fundraising began to weigh on the community. Proposals seemed to be in a never-ending loop, vying for support. Amidst this, however, the ecosystem was starting to thrive. A creative solution emerged in the form of pre-orders for Tangem and OneKey, not only easing the fundraising challenge but also addressing a crucial need — the development and dissemination of hard wallets, bridging a vital gap in cold storage solutions.

Mid-Year Progress

As 2023 reached its midpoint, Kaspa’s trajectory was nothing short of impressive. This period was dotted with significant milestones, vividly depicting Kaspa’s technological evolution and deepening community engagement.

During this period, a significant transformation unfolded within Kaspa’s mining framework, marking a new era in its technological evolution. The shift from GPU/FPGA mining to the cutting-edge ASIC miners developed by IceRiver was a revolutionary change. This move towards ASIC technology drew significant industry attention and marked a remarkable turn in the mining community’s approach. Contrary to expectations of opposition, many GPU miners enthusiastically embraced the ASIC miners. This transition was a spectacle of technological advancement, with the dedicated hardware bringing impressive gains in hashrate and efficiency. And still is.

To bridge the gap between the traditional GPU mining contingent and the emerging ASIC sphere, the establishment of new mining pools and comprehensive tutorials for solo mining ventures assisted in this transition. These efforts did more than expand the mining options within Kaspa’s ecosystem; they demonstrated Kaspa’s adherence to maintaining a decentralized network, ensuring that the mining process remained accessible and efficient for both new and seasoned miners alike. This pivotal shift diversified Kaspa’s mining landscape and solidified its reputation as a forward-thinking and adaptable community and tech.

Another stride forward was Kaspa’s integration with platforms like Chainge Finance, Zelcore, CoinPal, Now Payments, NowNodes, etc. highlighting its growing versatility and interoperability. Bringing Kaspa’s adaptability and potential for broader application to more financial and tech sectors.

This period also witnessed more crowdfunding endeavors, mainly aimed at developing a browser wallet and securing more exchange listings. Emphasizing the community’s relentless drive to enhance Kaspa’s reach and usability. The active community participation in these crowdfunding efforts was that original dedication to the Kaspa promise and their resolve to see it excel in the dynamic cryptocurrency arena.

Crossing the halfway point of 2023, the ambassador program and the CMF began exhibiting its GrassRoots, Organic marketing (GRO) strength. A few Ambassadors began to initiate live events, educating people across various regions, cultures, and nations, promoting global inclusivity.

End-Year Achievements

As 2023 wound down, the progress Kaspa had made was not just visible but strikingly innovative. The year’s closing chapters were defined by several key developments.

The launch of Wrapped Kaspa (wKAS), which was solely on ETH, now links Kaspa with other major blockchain networks like Polygon and BNB Chain. This breakthrough amplified Kaspa’s interoperability, enabling it to integrate and interact within larger ecosystems. Wrapped Kaspa’s entry into these networks opened doors to diverse opportunities in DeFi and beyond, carving out a path for broader adoption and enhanced recognition in the expansive crypto community.

Another noteworthy development was the debut of the Kaspium mobile wallet. This move marked Kaspa’s venture into mobile technology, dramatically widening its audience. The Kaspium wallet brought together ease of use, robust security features, and smooth transaction processes, making Kaspa’s advanced technology readily accessible to a broader, mobile-oriented demographic.

The birth of the Kaspa Ambassador Program earlier in the year quickly matured in Q4, from a few regional ambassadors to over 30 reps spanning the globe! They spearheaded many local meetups and represented Kaspa at conferences in places like France, Nigeria, the USA, Canada, Australia, etc.  Each was equipped through the Community Marketing Fund (CMF) and supported by the marketing team with promo, merch and educational tools like the now, infamous Battle Cards and Kaspa slide decks.

During Yom Kippur, the Kaspa network faced a cunningly timed dust attack. This challenge turned into a demonstration of its resilience and adaptability. This attack, synchronized with a key religious observance, was not merely a test of the network’s capacity but a calculated strike. In response, the Kaspa team, undeterred by limited resources and unfavorable timing, rallied with rapid innovation and cohesive community effort. With their exceptional problem-solving acuity, they crafted a multifaceted defence strategy. This strategy, carefully balancing the need to avoid a network fork and minimize user disruption, involved implementing new transaction policies and prioritizing established transactions, thus steering the network skillfully through a potentially crippling hard drive crisis.

Technological advancements kept pace with continuous enhancements to Rusty Kaspa and the Kaspa Go network. These updates focused on improving the network’s capacity for handling large transaction volumes, ensuring scalability and efficiency. This relentless pursuit of technological refinement positioned Kaspa at the forefront of blockchain innovation, showcasing its agility and responsiveness to the evolving market demands.

As the year drew to a close, Kaspa’s accomplishments and commitment to continual innovation and growth reinforced its technological infrastructure. Also broadened its appeal and utility, cementing its status as a significant contender in the greater cryptosphere. Kaspa’s journey through 2023, collective vision, technological excellence, and community-driven efforts laid a solid foundation for its future endeavors.

The Future

As Kaspa strides into the future, it carries the same steadfast resolve for innovation and a booming role in the DeFi world. The roadmap unfurling ahead is dotted with critical developments, notably starting with the eagerly awaited launch of Rusty Kaspa public Testnet 11. This release is poised to be a transformative juncture in Kaspa’s journey, bringing substantial improvements and fresh functionalities.

Elevating transaction handling capabilities remains at the forefront. To achieve the status of an everyday currency, swift and efficient transaction processing is increasingly sought-after. Kaspa is committed to expanding the horizons of transaction throughput, especially in BPS. This ambition encompasses technological strides and network stability and security assurance — pivotal elements in preserving user trust and satisfaction.

The vision for Kaspa’s future has always been about a nurturing, inclusive, and vibrant community. The community has been the cornerstone of Kaspa’s progression and triumphs, making its continued support and growth essential. This includes widening outreach, enhancing platforms for community engagement, and ensuring that community insights and participation remain central in guiding Kaspa’s direction.

Peering further into the horizon, the roadmap harbors ambitious plans for the integration of sophisticated smart contract functionalities. These advancements aim to broaden Kaspa’s utility, positioning it as a versatile platform for many applications. Additionally, increasing the blocks per second past 10 BPS, aspiring to keep the position as the fastest PoW network in existence.

The highly anticipated DAG KNIGHT protocol remains the summit objective and significant future goal for Kaspa. This protocol is expected to introduce a novel layer of innovation and efficiency to the network, further reinforcing Kaspa’s goal for 100 BPS and the first parameterless network.

Kaspa’s future is shaped by a trajectory of ongoing growth, cutting-edge technological development, and deep community involvement. With a clear vision and an ambitious set of objectives, Kaspa stands ready to meet and surpass the anticipations of its community and stakeholders in the blockchain sphere.


Not all was mentioned as it would have been a book!! But all efforts are greatly appreciated and celebrated!

The post Kaspa 2023 – Past, Present, and Future appeared first on Kaspa.

]]>
50185