Using AA for GBytes heritage

Hey_Monkey
Autonomous Agents powered by Obyte
4 min readOct 11, 2019

--

We feel smart because you have gathered some GBytes, but what if you die tomorrow?

Introducing WEAALTH powered by Obyte

WEAALTH is using 2 secondary AA:

  • HOLLAA is used to store a list of beneficiaries
  • Sha256 storage AA from Obie sharjar

Let’s start our will/testament using this AA.

WEAALTH address is :

O3NCABNGTTESVUSHWYANRHEOKONJUN7L

To create a testament:

Our address is temporary store as var key to allow complete setup without adding the testament name as input…

Add some beneficiaries

We want to add ‘Ape’ as beneficairy for 40% of our weath, we have to give him a secret phrase that he will use to proof ownership when we will be dead.

We have to provide to WEAALTH the base64 encoded SHA256 hash of this secret phrase (for example created from here). If the phrase is “Ape, you are good boy”, the hash is ‘T928rsmqTikcCnNKfypamRSuI2xuMG+GTSD6L6hJl1I=’

The 60% available will be for ‘bonobo’, his secret will be ‘bonobo is not a chimpanzee’ the hash is ‘HQihyclMPHspcqBwimQplrg9PSzhHgzSKa4S50v9HHg=’

Finish testament setup

Now the testament is sealed and cannot be modify.

The writer can of course get back his money at any moment to create a new testament if needed. But for that he needs to put money in the testament balance first^^.

Fill the testament balance

Basically, you can store all your funds on this balance to make sure that your beneficiaries can inherit your wealth if something happens to you.

To fill the balance use:

Now there is something serious to inherit from.

Now if Monkey is despairing from this world, the 2 beneficiaries can initiate a request to access the money.

Request your part of the heritage

This action need a 50.000 bytes fee to avoid spamming, those bytes will be get back if the ownership is proven later (right secret phrase).

Of course we want to avoid the beneficiaries to request their heritage if the Monkey is not really dead.

The request only sends a notification to the testament owner and starts a period during which he can prove that he is alive by canceling the request.

For the test-net version period has been set to 10 minutes but in main-net version it should be set to weeks or months, or maybe it should become an option of the testament to be chosen by the whiter at the moment of creation.

During the period no beneficiaries can access the funds

In the case of Monkey is not cancelling the request during this period, the beneficiary can really has a change to get to the money that will be safely store in a secondary AA that will release it only if he proves the ownership by giving its secret phrase.

--

--