Grants icon indicating copy to clipboard operation
Grants copied to clipboard

SecretNET - secret library for Unity3d (and potentially .net core)

Open floAr opened this issue 3 years ago • 10 comments

SecretNET - secret library for Unity3d (and potentially .net core)

Problem / Solution

Communication of clients with the secret network is mostly facilitated through secretJS. Working with Secret Heroes had the problem of communication funneling from the Unity3d game, into a website to use the secretJS lib. This introduces unnecessary hoops to jump through and make syncing different state harder than it has to be. SecretNET strives to enable this space from withing .net based projects with a focus on the Unity3d game engine

Project Description

This project will provide a library for the .net ecosystem, as well as Unity3d, plus documentation to get developers started. .net core is a cross platform library that would open up many native integrations for talking to the secret network.

alt text

A similar project from the Ethereum space (https://github.com/Nethereum/Nethereum) is currently sitting at over 70.000 download for the main library and over 500.000 downloads for the interfacing package.

Given the ability to query and talk to secret network nodes from within Unity would enable interesting use cases, building on secret NFTs and privacy preserving computation.

Value capture for Secret Network ecosystem

Similar to the python issue the main goal here is to capture more developers and enable them to work from their ecosystem with Secret Network. Additional Unity3d is the dominant game engine for indie games worldwide and the current situation would only allow it to run Unity games using webGL. This mode is extremely limited (no complex graphics, no mobile) and adding the ability to work with secret network from the full scope of unity would open up a plenitude of platforms, allowing us to reach millions of users.

Imgur

Team members

  • Florian Uhde
  • Potential: Part time support from other members of our game studio http://three-eyed-games.com/

Team's experience

  • Florian has been working with Unity and C# for over 15 years in a professional capacity and has implemented several libraries and tooling solution in C#, including mayor tooling that is used within VW to facility its own interactive experience strategy.

Team Code Repos

  • https://github.com/floAr/NFTHack-SecretHeroes
  • https://github.com/floAr/UniteCPH_TurnBasedPrototypeECS

Team LinkedIn Profiles

  • https://www.linkedin.com/in/florianuhde

Development Roadmap

The project would be structured in 2 parts:

  1. Building the 'bare-metal' library implementing the REST communication and helper functions to reach feature parity with secretJS.
  2. Building Unity3d helper library, wrapping the lib (1) with Unity specific patterns to allow seamless integration within the Unity3d engine Some open question are the availability of crypto libraries, Nethereum will serve as a reference point here.

We will require ~3 months to complete this project. I intent to work on this part time and while developing it functionality use it with 'live' secret projects to battle test it right away.

Milestones:

  • Implement REST communication (weeks 0 - 6).
  • Implement SecretJS helper functions (weeks 6 - 8).
  • Implement Unity library (weeks 8 - 12).

Payments would be around 4000SCRT could be facilitated in 3 charges, one at the beginning of the grant, one after implementation of building block (1) and last payment when the work is completed for the Unity integration. We would be willing to consider the full payment in SCRTs.

Looking forward to discuss this further!

floAr avatar Apr 26 '21 17:04 floAr

I can't wait for this to be finished.

SCRTHodl avatar May 08 '21 05:05 SCRTHodl

Hi, so I'm for this, but as part of the roadmap I also want to see writing docs that are consistent with secretjs.

assafmo avatar May 09 '21 07:05 assafmo

Yep fully agree. I am aware of https://build.scrt.network/dev/secret-js.html, as well as https://github.com/enigmampc/SecretJS-Templates. Is this what you were thinking of as well, or is there anything I am missing. (I would also consider developer documentation in form of comment and c# function annotations a given)

floAr avatar May 09 '21 16:05 floAr

Yes, these will be good. :-)

assafmo avatar May 09 '21 16:05 assafmo

https://github.com/kinecosystem/kin-sdk-unity

Will this development offer similar content to the Unity SDK and python technical documentation?

Only having several years of playing with C# in Unity, I have briefly worked through the current SCRT learning tutorials and see a lot of similarities in my other projects. One of my first blockchain projects was an attempt to work through a Nethereum based P2P trading app built in Unity. I spent a few months going through 100 pages of PHP files and scripts and ripped out what I didn't need from ETH integration and put in another token as I taught myself Amazon AWS and set up a server... Later a Unity SDK with a python bootstrap was developed and I really appreciated that. That's my noob experience and I'm not sure what to expect at this early stage of development as I'm unfamiliar with some of the design patterns and language used by engineers.

SCRTHodl avatar May 10 '21 14:05 SCRTHodl

@floAr this grant is approved.

cankisagun avatar May 10 '21 22:05 cankisagun

This grant proposal is currently on-hold. The first SCRT payment was made to @floAr and the amount will be deducted from @floAr winning prize for secret manufaktur at Scaling ETH hackathon

cankisagun avatar Jun 04 '21 21:06 cankisagun

@floAr I have also created a .NET 6 SDK (SecretNET) for Secret (including SNIP20 and SNIP721 client), which is already finished. Maybe this is interesting for you:

https://github.com/0xxCodemonkey/SecretNET https://github.com/0xxCodemonkey/SecretNET.NFT https://github.com/0xxCodemonkey/SecretNET.Token

0xxCodemonkey avatar Oct 16 '22 10:10 0xxCodemonkey

@floAr I have also created a .NET 6 SDK (SecretNET) for Secret (including SNIP20 and SNIP721 client), which is already finished. Maybe this is interesting for you:

https://github.com/0xxCodemonkey/SecretNET https://github.com/0xxCodemonkey/SecretNET.NFT https://github.com/0xxCodemonkey/SecretNET.Token

100%! Have been following closely and thrilled to give it a try soon.

floAr avatar Oct 16 '22 10:10 floAr

100%! Have been following closely and thrilled to give it a try soon.

If you have any questions problems or suggestions, feel free to contact me :) You can also find me on Discord under Codemonkey#6439

0xxCodemonkey avatar Oct 16 '22 11:10 0xxCodemonkey