Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart contract update #5

Open
tjayrush opened this issue Aug 24, 2022 · 0 comments
Open

Smart contract update #5

tjayrush opened this issue Aug 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tjayrush
Copy link
Member

tjayrush commented Aug 24, 2022

The smart contract should take an additional parameter: reason. Right now, it only takes chain and hash.

In this way, we can publish different records -- in fact, anyone can publish any record for any reason.

In our case, we want to publish three data sets:

publish(chain, "unchained-index", hash)
publish(chain, "timestamps", hash)
publish(chain, "abis", hash)
publish(chain, "names", hash)

Note that the client software (i.e. the software reading the data) can decide what to do with it. If they only want to read the names database from the mainnet, they can.

Note: The first three databases above are 'reproducible' and 'immutable'. The names database is not. (It matters because end users don't have to trust the first three -- if they don't they can reproduce it themselves, while the last one (names) is not reproducible -- no less useful, but not reproducible.)

@tjayrush tjayrush added the enhancement New feature or request label Sep 9, 2022
@tjayrush tjayrush transferred this issue from TrueBlocks/trueblocks-core Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant