Hyperchains development updates

Hello, @gorbak25 it’s more than a month since the last update. Can you share more about the progress of hyperchain?

7 Likes

We are looking forward to more details about hyperchains. White paper? Popular science articles? Video? Update FQA?

8 Likes

Is there a better place to get these updates? I know the developers probably aren’t hanging around on these forums.

@erik.chain maybe you can help with some update? Anything is better than silence from @gorbak25 since people usually tend to get nervous if there is no response for quite some time :sweat_smile:

Even line: “don’t bother me, there is no update now, I will keep you posted when I have something to say”, would be better than silence. :sweat_smile:

Hi @Amadeuss, as far as I know @gorbak25 was working on an update that should be released soon :slight_smile:

And @hadees.chain here is the place to get the updates, though we will soon also have public update calls again to give you regular updates on the development as well :v:

5 Likes

Hi @erik.chain , I knew that you would be the right person to give some quick feedback, I appreciate your swift response :+1:

Looking forward for future development :muscle: :tada:

4 Likes

Update #17 [09 Feb - 20 April]

Time for a long, long, long overdue update :slight_smile:
Behind the scenes a lot was going on, we wrote a lot of documentation, we prepared a lot of demos, we got the private HC testnet up and running, we helped with the IRIS HF and we have a clear roadmap for the near future. This update is deliberately not complete to not clog this thread - some new threads will appear in the forum in the next days.

HC Private testnet

The long awaited private HC testnet is here :slight_smile: The MVP of the HC protocol is here and operates nominally - we’re testing everything using 3 BTC regtest nodes as the parent chain and 3 HC validator nodes as the Hyperchain. We decided to keep this private as long as we’re still fidling with the protocol and our docker scripts.

HC Roadmap

We prepared a clear way forward - we will post it in a separate thread in the forum :slight_smile:

Team expansiton

We’re hiring and expanding our dev resources. Right now I’m happy to announce that @cytadela8 and @wj2016 joined our team :slight_smile:

HC Protocol

With the Proof Of Concept(Private HC Testnet) ready we went to the drawing boards and ironed out a lot of details about the protocol:

  • Compared to the protocol in the V1 Whitepaper it’s much more secure and cheaper than before - we found a nice difficulty formula which ensures that HC has a lot of nice security properties :slight_smile:
  • The HC protocol was hardened against “shadow forks”
  • We evaluated the economic feasibility of the HC Protocol
  • We found a way to make delegated staking safe and sound
  • We designed a way to easily migrate AE mainnet to the HC protocol via an onchain protocol enforced vote
  • etc…

HC Article

We prepared a detailed marketing friendly writeup of the HC protocol - it’s the preliminary step before preparing the V2 of the whitepaper. This was the main reason why this update took so long to publish - I’ve planned to publish everything at ONCE, or at least the Article and Roadmap alongside the update :wink:

IRIS HF

We helped with the Iris HF - We developed contract factories, cloning and bytecode introspection in the FATE VM and introduced syntax support for it in Sophia - Contract factories and bytecode introspection by radrow · Pull Request #305 · aeternity/aesophia · GitHub
Some performance tweaks in the node were made.

Erlscripten

Amazing progress here - right now one can just npm install erlps-aesophia to get a client side sophia compiler in JS :3 Some small JS compatibility layer is still missing but this will be done after the IRIS HF. Here is an SDK with a client side sophia compiler: [DON'T MERGE] Client side Sophia compiler by gorbak25 · Pull Request #1117 · aeternity/aepp-sdk-js · GitHub
While working on erlps we also found some rare bugs in the sophia compiler.
We reworked the IR of the purescript compiler to improve the compiler performance, and we also started some discussions on their pattern matching mechanism: Proposal: Replace data structures with tagged arrays · Issue #4020 · purescript/purescript · GitHub

Stay tuned :slight_smile:

10 Likes

thanks for the update and your amazing work! can’t wait to actually test hyperchains :slight_smile:

I noticed that the bundle size currently is around ~7mb according to the analysis of @davidyuk. is it possible and planned to shrink that to a size that is suitable for common web applications?

really great to see progress on that side. this will enable us to implement a “feature complete” mobile client for state channels, right?

3 Likes

so no more PoW for AE?

2 Likes

In the long term probably yes.

2 Likes
  1. AEVM support can be removed from the bundle
  2. Tree shaking can be done
  3. We can remove a lot of unused stuff from aebytecode(aeb_generate_fa_ops)

Generally I think it will be hard to get the bundle size down to <1MB. ~2MB might be feasible. The way forward is to get the SDK working in one of 3 modes:

  1. Full dynamically downloaded compiler with everything
  2. By default a slim calldata encoder/decoder using erlps
  3. Legacy/Deprecated HTTP compiler
5 Likes

does hyperchain block is immutable?

Hyperchains blocks are always immutable. Keep in mind that like in any blockchain an immutable block might still be rolled back due to an 51% attack.

5 Likes

But still - that would be 51% attack on the parent chain, right? To the best of my understanding - HyperChains are a hybrid and thus immune to traditional long-range attacks that could happen on PoS networks…

1 Like

HC are immune to long range attacks :slight_smile:

4 Likes

More than that I’d love to see a CDN we can all trust. 7mb isn’t bad if only the first app has to download it locally. Maybe something tied into the chain?

1 Like

In theory though you could use multiple chains and thats where I think it gets really interesting because the attack has to be on more than one chain.

so no more double spend attack at exchange?

4 Likes

When will hyperchain be released?

Have a look at the latest roadmap update here:

You can already try out an early version of the private testnet :nerd_face:

5 Likes