Blog

Stratis Decentralized Accelerator

Do you have a blockchain project or idea? Want to get that funded?
The Stratis Decentralized Accelerator (SDA) has over $13,000,000 available to incubate and fund projects through their initial development phase. Stratis understands the difficulties

Stratis Q1 Releases

Stratis is pleased to provide an update on the development activities that have taken place over the past 3-Months. It’s been an exciting time for Stratis, with the launch of the STRAX Blockchain enhancements, to the announcement of a

The launch of wSTRAX

Stratis InterFlux now fully supports the Ethereum blockchain, enabling seamless transitions from the native STRAX Token to wSTRAX. The launch of the wSTRAX ERC-20 token on the Ethereum blockchain will coincide with a newly created liquidity pool on UniSwap between wSTRAX and ETH, enabling STRAX to take full advantage of UniSwaps automated liquidity protocol. Stratis has received confirmation of USD 150,000 being made available for the wSTRAX/ETH pool, allowing token holders to take immediate advantage of the UniSwap DEX. The wSTRAX token is not limited to UniSwap and can be leveraged, integrated and utilized on any DeFi solution or platform available on the Ethereum blockchain.
The two contracts controlling the issuance of wSTRAX on the Ethereum blockchain can be found below:

MultiSig Contract (Minting)

https://etherscan.io/address/0x14f768657135d3daafb45d242157055f1c9143f3

wSTRAX ERC-20 Contract

https://etherscan.io/token/0xa3c22370de5f9544f0c4de126b1e46ceadf0a51b
This process of transitioning from STRAX to wSTRAX is made seamless through integration into the latest STRAX Wallet offerings. Navigate to the send pane and select InterFlux as a destination to simply “swap” STRAX for wSTRAX in a trustless manner. Please be aware that there is a minimum STRAX Token amount enforced due to high fees on the Ethereum blockchain. 
This release is accompanied by the latest STRAX Wallet release, available for all major operating systems. Download links can be found on the wallet page.
Join Stratis’s ever-growing community to discuss the further advantages of the developments mentioned above and how the ‘wrapping’ of other blockchain tokens can benefit Stratis Blockchain Technologies.

The Stratis Interflux wSTRAX rollout on Ethereum has begun

Stratis is ecstatic to reveal that the wSTRAX (Wrapped STRAX) Token is now available on the Ethereum Blockchain! Wrapped tokens are a valuable source of liquidity and flexibility for blockchain interoperability. Over time, any network’s available throughput and general fee levels will fluctuate. Having wrapped tokens available on a separate blockchain network allows transacting to occur via alternate channels. Wrapped tokens also have access to the respective capabilities of the networks they exist on.
wSTRAX implements a wrapped token on the Ethereum network, leveraging the ubiquitous ERC-20 standard for token contracts. Each wSTRAX is equivalent in value to 1 STRAX. wSTRAX is created by the InterFlux MasterNodes collaboratively, rather than any single entity being responsible for minting the tokens. When a request is made to transfer STRAX to its wSTRAX equivalent on the Ethereum network, the transaction is autonomously detected and processed. Enabling the minting of required wSTRAX tokens and distribution handling to the respective Ethereum address to be undertaken seamlessly.
The deployment is made possible through the deployment of two contracts on the Ethereum Blockchain,

MultiSig Contract (Minting)

https://etherscan.io/address/0x14f768657135d3daafb45d242157055f1c9143f3

wSTRAX ERC-20 Contract

https://etherscan.io/token/0xa3c22370de5f9544f0c4de126b1e46ceadf0a51b
This process is made seamless through integration into the latest STRAX Wallet offerings. Simply navigate to the send pane and select InterFlux as a destination to simply swap STRAX for wSTRAX in a trustless manner.
 

The wallet will become publicly available once the required amount of InterFlux Masternodes become available to process requests to the Ethereum Blockchain. The codebase for the InterFlux functionality is now complete and can be viewed on our GitHub Project page here.

Stratis AMA on Binance Telegram with Chris Trew

On the 23rd February, Binance organised a Stratis AMA with Our Founder and CEO Chris Trew on their Official English Telegram Channel.
Host: Q1: How does Stratis plan to compete against leading Smart Contract development platforms?
Answer: Through hard work, determination, and technical excellence, the Stratis Smart Contracts platform is the only platform in the world that provides native C# Smart Contract execution. A significant amount of research and development was allocated to building a platform that leveraged a feature-rich framework such as that offered by the Microsoft .Net Framework—resulting in a familiar and trusted development environment. This, coupled with breakthrough products such as Stratis InterFlux, which provides interoperability between Ethereum and other chains, such as Binance’s Smart Chain in the future, enables Stratis Platform to be leveraged both as a scaling solution and as alternative smart contract platform. This combined with simplified integration into existing financial applications and enterprise line of business applications that are developed utilising the .net framework gives Stratis a unique position in the marketplace.
 
Host: Q2: What are the benefits Stratis Masternode, can we touch on that topic?
Answer: By operating a Stratis Masternode, you play a role in validating and securing the Stratis Smart Contract Sidechain. Also, Masternodes validate cross chain transactions through Stratis InterFlux interoperability protocol. Each block validated by a Stratis Masternode is rewarded from a share of a block reward generated on the Stratis Mainchain (STRAX). This equates to, on average, 17,280 STRAX being autonomously distributed to operating Masternodes every day. To put this into context, if there were 50 operating Masternodes, each Masternode would be rewarded, on average, 345 STRAX per day.
As projects, such as the recent AMM style DEX OpDex, continue to build on the Stratis Platform and utilize Stratis Sidechain’s more rewards will be distributed through an uptake in utilization. Rewards will also be generated by other services hosted on the Stratis masternodes in future.
This masternode reward combined with staking provides a very competitive APY.
 
Host: Q3: How does Stratis intend to gain adoption?
Answer: Stratis is already engaging with several high-profile marketing organizations to cement Stratis’ name as the go to enterprise-ready PUBLIC Blockchain Technology platform and to build the awareness of Stratis within the wider crypto audience. The marketing efforts will be complemented by Stratis also interacting with huge .Net focused development groups and developer communities, creating rich development-focused content. Stratis will encourage development groups and individuals to build on our platform and support those who commit to building end-to-end solutions utilizing Stratis Technologies.
We are also solving some of the key hurdles that must be overcome to achieve mass adoption of blockchain and DeFi technologies, mainly interoperability, integration with existing systems and the use of class leasing development tools.
 
Host: Q4. Do you have any plans to work with the UK Government or large UK Corporations?
Answer: Stratis is headquartered and registered in the UK, we chose to incorporate Stratis in the UK, so we could work with local governments and other organisations that will only work with UK based companies. Stratis is focused on securing business within the UK and is working with several technology partners including Triad Group Plc, a leading IT Service provider in the UK.  We are also discussing with a consortium of a top ten international law firm, an established global auditing company regarding a GBP stable coin utilizing Stratis Technologies and governed by a consortium of blue chip companies.
 
Host: Q5: What does Stratis plan to do in the coming months?
Answer: The coming months will see Stratis meet the development roadmap items which we have set forth on our roadmap. The DeFi Software Library excites me the most – introducing several highly utilized projects codebases to the Stratis Platform, showcasing our platform’s flexibility and validity while also providing practical use-case examples for new developers exploring Stratis Technologies. On the 8th of March we will be deploying InterFlux into production which will bring wSTRAX to Ethereum and all of the applications running on top e.g UNISWAP and other decentralised exchanges.
We are also very excited about our IOT SDK which will see us release an Ultra Light client and backend infrastructure to support IOT use cases which are highly in demand within the UK.
 

The Second Segment of the AMA, Chris picked 9 Questions from the public to answer
 

Q1: Smart contracts are prone to bugs, How efficient and secure is your smart contract. Have you ever been audited through external parties, so we are sure that this project is safe and good for the future of investors?
Answer: Our use of C# as a development language means that there is a much larger pool of developers (10M+) than other smart contract languages like Solidity, these means there are more developers that can potentially audit the code and those developers can utilise the same tools they used for previous development projects. We also have decentralised smart contract execution governance, this means smart contracts must go through and audit process and peer review before being able to be deployed on the network. This ensures that any smart contracts being executed by masternodes have received an audit.
 
Q2: Before the Bear market, Stratis was a top 10 coin & had over a billion dollar market cap. Since experiencing the devastating devaluation that struck the crypto world in 2018 why did the company decide to not just fold and walk away with all your money? What drives your decision to preserve, building and offering an even better platform (STRAX) to the crypto world? Having already experienced those highest highs and those lowest lows, do you feel wiser and better prepared about the future Stratis will exist in?
Answer: The bear market was a very difficult time, having only raised 600K USD we had to be very careful without funds and focused purely on developing our platform and products, rather than on marketing and trying to create hype. This did affect us, but has allowed us to deliver the same as projects that raised tens of millions with a much smaller budget. This has allowed us to stay agile and also keep our burn rate down.
We recently received an injection of capital form Tier one Crypto fund Alphabit, this capital is going to allow us to finally compete with our competitors in all areas including marketing.
The paste 4 years have been a great learning experience and I feel we are very well position to capitalise on the crypto/blockchain boom that is currently ongoing
 
Q3: Any plan for liquidity farming?
Answer: Yes, the project OpDex has been under development for over 1 year and just received 500,000 STRAX in funding from the Stratis Decentralised Fund. OpDex is an AMM style dex that will offer significantly lower fees than the current established decentralised exchanges and key features they are lacking. OpDex will be the main Liquidity platform at Stratis.
 
Q4: What does $STRAX think about DeFi’s current trend? Does $STRAX follow trends or make a difference? Can $STRAX share with users about future development plans?
Answer: Good question, when people ask I say we have been working on DeFi for 4 years, only the market has just caught up and termed the phrase “DeFi”. We have been working on building an enterprise grade platform that could support the next generation of decentralised finance. We will soon be releasing out DeFi library which will include documentation, API’s, easy access clients (Web brower/mobile). OpDex V1 is nearly ready and we expect testing to start soon.
 
Q5: Are there companies actually deploying applications on Stratis blockchain? Any initiatives in last year or this year that we might know of?
Answer: Yes, there are several companies building on top of the Stratis platform since we moved into being production ready. MediConnect are revolutionizing the pharmaceutical and PPE supply chains through the user of blockchain technologies powered by the stratis platform.
Gluon are utilising the blockchain to revolutionize the gas industry in the US through the user of blockchain for track/trace, Gas reserves monitoring, Point of sales integration and loyalty points. With over 150 gas stations signed up they have received significant traction.
OpDex is a Stratis DAO funded AMM type DEX and offers a real alternative to the existing decentralised exchanges through significantly lower fees and offering scalability well beyond the majority of AMM type Dex’s. We also have over 10 projects that have forked our code and run their own native chains.
As part of the two stratis hackathons, there are many examples of applications that can be built on Stratis. Due to our new business development focus we are talking with many companies that are interested in deploying the on Stratis platform, we expect to see exponential growth in this area in the coming months.
 
Q6: Besides coding languages, what is your approach to win market share versus other popular platforms?
Answer: One of our main strategies is utilising existing development and consultancy companies that do not currently offer any products or services around blockchain. They can join the Stratis partner program and receive training, access to closed source tech, free development and consultancy time.
This will then allow them to add blockchain to their service offerings and give them the ability to cross sell blockchain into their existing customer base, So it brings the consultancy company revenue through consultancy and development, it bring Stratis adoption and also companies that can sell our platform and products allowing us to focus on the platform development.
 
Q7: What kind of decisions will STRAX holders be able to make within the Stratis platform? Will they be only economic decisions or will they be able to decide in other areas as well?
Answer: All important decisions go through a decentralised vote, like the proposal to migrate from STRAT to STRAX.Our community also decide on which projects receive funding from the Stratis Decentralised fund.
 
Q8: What real solutions are you bringing to DeFi in Stratis, and what exact problems do you want to solve in DeFi?
Answer: Increased security through our auditability and decentralised smart contract governance. Simplified integration into existing CeFI and traditional finance systems developed in .net. Our ability to roll out network updates in a matter of hours allows us to react to economic and other changes. The tokenomics of STRAX mean the Masternodes executing smart contracts receive a significant reward regardless of gass fees, this allows us to have a significantly lower gas cost than the other smart contract platforms. This has an impact on well adopted DeFi apps like an AMM style DEX
 
Q9: Did you raise funds so far? If so, how did you handle them? Are you planning to do any future raises?
Answer: We raised 600K USD in 2016, the two projects that raised around the same time were waves (30,000 BTC) and LISK (15M USD). The fact we are even still here is a miracle and people have rightfully had concerns since the start that we would run out of money.
Stratis may not be as shiny as other new sexier projects, but one thing we have proven is that we can deliver with far less and we have the dedication that many other projects do not.
We have just received a capital injection and now finally have the resources to compete in areas other than development.
 
AMA Concluded
 
 
 
 
 
 

InterFlux Interoperability Hub Ethereum Ropsten release

We are pleased to announce that we have now extended the blockchain support for Stratis InterFlux to include Ethereum. Opening the door to many more use-cases for the STRAX token by enabling it to be utilised within DeFi applications including AMM type decentralised exchanges such as Uniswap on the Ethereum blockchain.

Wrapped STRAX

Wrapped tokens are a valuable source of liquidity and flexibility for blockchain interoperability. Over time, any network’s available throughput and general fee levels will fluctuate. Having wrapped tokens available on a separate blockchain network allows transacting to occur via alternate channels. Wrapped tokens also have access to the respective capabilities of the networks they exist on.
wSTRAX implements a wrapped token on the Ethereum network, leveraging the ubiquitous ERC-20 standard for token contracts. Each wSTRAX is equivalent in value to 1 STRAX. wSTRAX is created by the InterFlux MasterNodes collaboratively, rather than any single entity being responsible for minting the tokens. When a request is made to transfer STRAX to its wSTRAX equivalent on the Ethereum network, the transaction is autonomously detected and processed. Enabling the minting of required wSTRAX tokens and distribution handling to the respective Ethereum address to be undertaken seamlessly.
A minting transaction is submitted to the Stratis InterFlux Ethereum Masternode MultiSig wallet contract. A majority decision is required to confirm the transaction’s validity before being broadcasted to the Ethereum network. Once this happens, the wSTRAX will appear in the destination account’s balance and be transacted with any other ERC-20 token.
The initial version of Stratis InterFlux includes transacting with a wrapped STRAX token on the Ethereum network.
For this to be accomplished, the corresponding STRAX is secured by the Federation MultiSig for the wSTRAX token’s lifetime.

  1. Conversion transaction received as a Cross-Chain-Transfer from the STRAX blockchain.
  2. The Stratis InterFlux Gateways(s) detect receipt of this transaction.
  3. One of the InterFlux Gateways submits a token minting request transaction to the Ethereum InterFlux Hub contract and signs it
  4. A quorum of the other Stratis InterFlux Gateways sign this transaction.
  5. When the transaction is sufficiently signed the minting request is submitted to the ERC20 contract, creating new wSTRAX tokens and allocating them to the account specified in the conversion transaction.
  6. The wSTRAX ERC20 token can be transacted as normal by ordinary Ethereum wallets and accounts.
  7. Conversion from wSTRAX back into CRS or STRAX is accomplished by submitting a burning request to the ERC20 contract for the desired amount, specifying the target InterFlux Hub address.
  8. The InterFlux Gateways detect the burn request on the Ethereum network and release the corresponding funds from the InterFlux Gateway wallet to the target address.


It should be noted that the system as described ensures that every wSTRAX token is backed by its equivalent value. In other words, there can’t be more wSTRAX in existence than the funds in the InterFlux Gateway wallet. In the future, CRS will be convertible to wSTRAX via a conversion contract on the InterFlux Hub network.

Architecture Overview

To allow blockchain interoperability between networks, a mechanism is required for bridging the networks. The InterFlux architecture will consist of multiple gateways that interface with a node on both interoperating networks. A high-level overview can be seen below.

The gateways listen for interoperability requests initiated against the InterFlux contracts on each network. For example, suppose an Ethereum node needs to invoke a Stratis C# Smart Contract method. In that case, it sends a transaction to the Ethereum InterFlux contract with the details of the invocation (e.g. Cirrus contract address, method name, parameters).
Once the invocation request is received, one of the Stratis InterFlux Gateways actions a transaction on the interconnected network. If there are any applicable return values, these are stored in the transaction receipts. The gateway then makes a further transaction on the original network to store the interoperability request results.

Roll out schedule

Sunday(14/02/21)-Monday(15/02/21): Interflux Masternode setup.
Tuesday(16/02/21): Interflux enabled wallet release (Ethereum Ropsten).
Wednesday(03/03/21): Interflux Masternode setup (Ethereum Mainnet).
Monday(08/03/21): Interflux enabled wallet release (Ethereum Mainet).
Please note this schedule is dependent on the results of the community testing.
 

Stratis InterFlux – Ethereum Interoperability

We are pleased to announce that we have now extended the blockchain support for Stratis InterFlux to include Ethereum. Opening the door to many more use-cases and enabling Stratis Technologies to leverage deployed use-cases and products on the Ethereum blockchain.

Wrapped STRAX

The initial version of Stratis InterFlux includes the ability to transact with a wrapped STRAX token on the Ethereum network.
For this to be accomplished, the corresponding STRAX is secured by the Federation MultiSig for the lifetime of the wSTRAX token.
Token lifecycle:

  1. Conversion transaction received as a cross-chain transfer from the STRAX blockchain.
  2. The MultiSig masternodes detect receipt of this transaction
  3. One of the MultiSig nodes submits a token minting request transaction to the Ethereum MultiSig wallet contract and signs it
  4. A quorum of the other MultiSig nodes sign this transaction
  5. When the transaction is sufficiently signed the minting request is submitted to the ERC20 contract, which creates new wSTRAX tokens and allocates them to the account specified in the conversion transaction
  6. The wSTRAX ERC20 token can be transacted with as normal by ordinary Ethereum wallets and accounts
  7. Conversion from wSTRAX back into CRS or STRAX is accomplished by submitting a burn request to the ERC20 contract for the desired amount, specifying the target Cirrus address
  8. The MultiSig nodes detect the burn request on the Ethereum network and release the corresponding funds from the MultiSig wallet to the target address

It should be noted that the system as described ensures that every wSTRAX token is backed by its equivalent value. In other words, there can’t be more wSTRAX in existence than the funds in the MultiSig wallet.

In the future, CRS will be convertible to wSTRAX via a conversion contract on the Cirrus network.

Proposed Architecture Overview

To allow blockchain interoperability between networks, a mechanism is required for bridging the networks. At a high level, the InterFlux architecture will consist of multiple gateways that interface with a node on both interoperating networks.

The gateways listen for interoperability requests initiated against the interop contracts on each network. For example, suppose an Ethereum node needs to invoke a Cirrus smart contract method. In that case, it sends a transaction to the Ethereum interop contract with the details of the invocation (e.g. Cirrus contract address, method name, parameters).
Once the invocation request is received, one of the masternodes actions a transaction on the opposite network. If there are any applicable return values, these are stored in the transaction receipts. The gateway then makes a further transaction on the original network to store the interoperability request results.
The Stratis InterFlux source is now available via Stratis’ GitHub page, found here. Testing will continue with existing Cirrus Sidechain Masternodes in a lead up to wSTRAX going live on the Ethereum Blockchain, two weeks from now.

Stratis Cold-Staking

Staking is essential to the Proof of Stake consensus mechanism used on the STRAX Blockchain. Blocks are verified and mined by network participants who are willing to set aside a portion of their tokens, effectively freezing them so they cannot be spent. In return, these participants are granted the right to verify transactions and earn bonuses paid in tokens. The larger the number of tokens a participant is willing to stake, the greater the chance they will be selected to mine the next block and earn the associated reward.
While tokens are being staked, they are frozen in a wallet. If the wallet is connected to the blockchain network, it is referred to as a hot wallet. Such an arrangement incurs a level of risk as the wallet is effectively exposed to the internet and therefore susceptible to attack. Conversely, if the wallet stores tokens offline (as is possible in the Stratis wallet, a hardware wallet, or even a paper wallet), it is known as a cold wallet and the staking process is referred to as “Cold Staking”. Cold Staking is inherently safer than staking in a hot wallet since tokens are not susceptible to online attacks while held in an offline wallet.
Cold-Staking has been activated on the STRAX Blockchain since its inception. However, relevant changes have now been made within the STRAX Wallet, enabling Cold-Staking configurations to be set up with relative ease.
This release includes a later release of the STRAX Wallet and an accompanying document that details the steps required to configure Cold-Staking securely while also detailing how to withdraw from your Cold-Staking setup.
 

STRAX Wallet Release Page

 

Cold-Staking Setup Guide

 

Stratis STO Platform and Stratis Identity 2.0

The ICO funding model became hugely popularized in 2017, raising over $10B, primarily due to a significant uptake in up and coming projects utilizing the ICO model to fund their project aspirations. Stratis was certainly no different and performed their ICO in June 2016, raising just shy of 1000 BTC enabling the development of the Stratis Platform and Technologies that are readily available today. In 2018 the ICO Funding Model trend continued, with over 2000 ICO’s concluding; however, a new term coined in 2018 was STO, a Security Token Offering. An STO defined a similar funding model to that of an ICO but was developed with regulatory body adherence in mind, to ensure compliance with the Securities and Exchange Commission.
Fast-forward two years, and it is clear that ICOs are not as prevalent as they once were in previous years. Instead, a blockchain-based funding model geared toward accommodating traditional practices has continued to evolve from the initially coined term STO. With conferences explicitly focusing on the utilization and adoption of STOs and promoting collaborative innovation, the future for STOs unquestionably looks bright. Furthermore, regulatory bodies and specific governments have now begun to make amendments to embrace and leverage technological advances achieved through the use of STOs. Such modifications to regulations make it possible for securities to become digitized, superseding the somewhat aged physical paper certificate process. The endorsement of STOs from regulatory bodies unleashes a wealth of benefits for organizations; such benefits include:

  • Automated Dividend Distribution (through Smart-Contract execution)
  • Efficient Compliance Checks (through Smart-Contract execution)
  • Fractional Ownership
  • Global Reach
  • Reduced Barrier for Entry

Stratis is all too aware of the benefits associated with blockchain-based crowd-funding, especially STOs and the power of digitizing non-fungible assets. Over the past months, Stratis has been quietly building an Asset Management Toolkit, geared to cater to those seeking to leverage the power of blockchain-based technology and the digitization of physical assets. Stratis has built and incorporated features necessary to gain approval from regulatory bodies in the United States through its partners’ progress with the Securities and Exchange Commission. The platform, paired with Stratis’ expertise in blockchain technologies, enables Stratis to provide a truly unique platform that delivers on the requirements set forth from both a regulatory standpoint and a user-experience point of view.
In addition to Stratis’ development of their functional STO Platform, Stratis has also packaged and delivered a claims-based Self-Sovereign-Identity solution. The Stratis STO Platform already comes with native Stratis Identity 2.0 integration, providing a genuine blockchain-based platform; removing user management requirements in an external database; everything is accomplished on-chain utilizing Stratis’ Blockchain Technology. Stratis Identity 2.0 delivers a full end-to-end solution for decentralized authentication and authorization. Of course, Stratis’ Identity 2.0 also adheres to the OAuth 2.0 and OIDC standards to ensure simplicity when integrating into third-party services for both authorization and authentication. Essentially, it is an IAM (Identity and Access Management) on the blockchain. Users can seamlessly sign in to various applications and websites using Stratis single sign-on the server without using passwords. They can also obtain and present claims about their identity enabling decentralized identity management. Personally identifiable information (PII) is not stored in third-party databases and managed only by the individual owning that information.
Stratis is always intent on providing solutions that ease digital transformation, and as a result, Stratis has officially released its STO Platform source-code on its GitHub organization. Thus, enabling anyone to leverage the platform immediately without any interaction with Stratis; however, as expected, Stratis is always available to provide support and advisory services. Stratis is the first to do this; offering a platform, free of charge, enabling both established businesses and start-ups with the ability to leverage a proven platform.
The Stratis STO Platform is immediately available with source-code being made available on their GitHub page below.
https://github.com/stratisproject/STOPlatform

Stratis and Unity Integration

Unity is a cross-platform game engine with a built-in IDE developed by Unity Technologies. It is used to develop video games for web plugins, desktop platforms, consoles and mobile devices. It is arguably, one of the most popular gaming engines currently available along with Unreal and GameMaker.
Scripts for Unity are primarily written in C#, and hence it attracted a lot of attention from the Stratis development team. Stratis envisages gaming to become one of the first real use cases for blockchain integration, making games more immersive, private and decentralized. It can blur boundaries between games and push power into the user’s hands.
Stratis platform features smart contracts which can be used in games. Using smart contracts will enable some exciting features in games that may have not been explored before or were highly centralized. One of the most common examples of it would be tokenization. Gamers are very much familiar with this concept. In-game gold tokens can now be purchased with real fiat currency. However, these tokens are highly centralized and cannot be efficiently utilized across games.
Stratis Platform has published unity specific packages that target .NETStandard 2.0 Framework allowing them to be used for various application development platforms such as Unity, Xamarin, ASP.NET etc. The packages currently available are:

More packages will be made available as required. These packages should allow developers to utilize most of the features of the Stratis Platform, including Smart Contracts in C#.
Stratis’ Unity SDK will be unveiled in the new year, incorporating full documentation and additional API’s specifically targeted at those utilizing Stratis Technologies within Unity Game development. Also, Stratis is excited to announce that their upcoming hackathon will focus on building games within Unity using the Stratis Unity SDK. Stratis has already created a gaming development focused channel within its Discord Server to ignite thought-provoking conversations to prepare for the official hackathon announcement.

Environment Setup

This section will give you a quick overview of how Stratis packages can be used for Unity game development. Most of the unity developers should not have any issues to utilise packages listed above.

Register and Install Unity IDE

  1. If you do not have unity account, start by registering unity ID: https://id.unity.com/
  2. Once registered download and install Unity Hub: https://unity3d.com/get-unity/download
  3. Make sure you have Microsoft Visual Studio installed (or any other IDE of your choice for writing C# code like Rider, Visual Studio Code etc.).
  4. Create a new Unity project. You can select a blank project or choose one of the provided templates, such as simple 2D Adventure Game or a more advanced Lego Racing 3D game as an example.


5. Navigate to Scripts section and add a new script
 

This should open your new C# script in an IDE of your choice, such as Visual Studio.
Now it is time to bring Stratis packages in to add some blockchain functionality to our game. Right-click on the solution in the solution explorer and select Manage NuGet Packages. This should open NuGet Package Manager.
Make sure preview packages option is ticked (currently NETStandard Stratis packages are in preview only).


Now you can code using standard Stratis Features. Once you are done with your script, you can close IDE, and the script will be available in your Unity project. If you have any errors, please follow this article to resolve NuGet package issues https://jonfoust.medium.com/using-gcp-nuget-packages-with-unity-8dbd29c42cc4.

Alternatively, packages can be imported using a Unity plugin, which is available here: https://github.com/GlitchEnzo/NuGetForUnity. It should automatically download all the required dependencies and place libraries in the correct folders.
Lets, now create some basic code such as generating private/public key combination. Ensure your newly created script is open in Visual Studio (if it is not, double click on it inside the unity project explorer).
Add new NuGet package: Stratis.Sidechains.Networks.NETStandard as per the instructions above. Once the package is installed, add the following code.
[code lang=”csharp”]
public class BlockchainService
{
private readonly Network network = Networks.Cirrus.Testnet();
public KeySet GenerateKeySet()
{
var privateKey = new Key();
var wif = privateKey.GetWif(network);
var address = privateKey.PubKey.GetAddress(network);
return new KeySet(address.ToString(), wif.ToString());
}
public string SignMessage(string message, string privateKey)
{
var sourcePrivateKey = new BitcoinSecret(privateKey, network);
var signedMessage = sourcePrivateKey.PrivateKey.SignMessage(message);
return signedMessage;
}
public bool VerifySignature(string signature, string publicKey, string originalMessage)
{
var address = (BitcoinPubKeyAddress)network.CreateBitcoinAddress(publicKey);
return address.VerifyMessage(originalMessage, signature);
}
}
[/code]
Now you have a basic service that will allow you to generate a private/public key pair, sign a message using your private key and verify a message.
You could use this to generate a wallet address for a user that can then be funded with tokens.

Running External Node

In most cases, you will need to operate a node to interact with Stratis or Cirrus network. It is improbable that developers would be running a node inside a game. It is recommended to host an external node that exposes specific API endpoints that the game would call. You could have a node that allows interaction with a specific smart contract.
Even though the game may not necessarily have a node running, you could still generate all the addresses, fund them outside the game and use offline transactions to propagate to a node.
Here is an example of the basic gaming setup, where a game can use basic blockchain functionality locally and interact with an external node via API to get more advanced functionality.


 

1 2 3 4 5 17 18
Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google
Spotify
Consent to display content from Spotify
Sound Cloud
Consent to display content from Sound
Join The Stratis Build Hackathon with $100,000 USD in prizes,sign up now.