This simple DA KVStore Store implementation based on irys. See the Irys doc for more information
go get github.com/4everland/opplasmairys
import (
"github.com/4everland/opplasmairys"
)
config := opplasmairys.Config{
//IrysPrivateKey
IrysPrivateKey: os.Getenv("IRYS_PRIVATE_KEY"),
//IrysPaymentNetwork supported networks: ethereum,matic,bnb,avalanche,arbitrum or fantom
IrysPaymentNetwork: os.Getenv("IRYS_PAYMENT_NETWORK"),
//IrysPaymentRPC, optional
IrysPaymentRPC: os.Getenv("IRYS_PAYMENT_RPC"),
//IrysFreeUpload, optional
IrysFreeUpload: os.Getenv("IRYS_FREE_UPLOAD"),
}
var (
err error
//backup kvstore, optional
store opplasmairys.KVStore
)
//create a new irys store
store, err = opplasmairys.NewDAStore(config, store)
This simple DA server implementation supports irys. See the daserver for more information