private-library-confidential-store

command
v0.0.0-...-97201bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 2 Imported by: 0

README

Example Suapp with a Private library

This example shows how Suapps can use private libraries stored in the confidential store that are not public in the Suave chain.

The private code is saved in the confidential store with the registerContract function. The function receives the bytecode as confidential inputs such that the code is not leaked. Then, when the example function is called, it retrieves the library from the confidential stores and deploys it on-runtime. Note that this library is volatile and only visible as part of the confidential request, its bytecode and changes in the storage variables are never saved on-chain.

How to use

Run Suave in development mode:

$ suave-geth --suave.dev

Execute the deployment script:

$ go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL