Documentation ¶
Index ¶
- func Load(cfgToml string, cfg interface{}) error
- func LoadFromCliFlag(c *cli.Context, cfg interface{}) error
- type Config
- type Contract
- type Contracts
- type Duration
- type EthKeys
- type IdenPubOffChain
- type Identity
- type KeyStore
- type KeysBabyJub
- type Password
- type Server
- type Web3
- type ZkFiles
- type ZkFilesHashes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromCliFlag ¶
Types ¶
type Config ¶
type Config struct { Identity Identity `validate:"required"` // Domain string `validate:"required"` // Namespace string `validate:"required"` Server Server `validate:"required"` Web3 Web3 `validate:"required"` KeyStore KeyStore `validate:"required"` KeyStoreBaby KeyStore `validate:"required"` Contracts Contracts `validate:"required"` Account struct { Address common.Address `validate:"required"` } `validate:"required"` Storage struct { Path string } `validate:"required"` Issuer struct { PublishStatePeriod Duration `validate:"required"` SyncIdenStatePublicPeriod Duration `validate:"required"` ConfirmBlocks uint64 `validate:"required"` } IdenPubOffChain IdenPubOffChain `validate:"required"` IdenStateZKProof struct { Levels int `validate:"required"` Files ZkFiles `validate:"required"` } `validate:"required"` }
type Duration ¶
func (*Duration) UnmarshalText ¶
type IdenPubOffChain ¶
type IdenPubOffChain struct { Http struct { Url string `validate:"required"` } `validate:"required"` }
type Identity ¶
type Identity struct { Id core.ID `validate:"required"` Keys struct { // Ethereum EthKeys `validate:"required"` BabyJub KeysBabyJub `validate:"required"` } `validate:"required"` }
type KeysBabyJub ¶
type Password ¶
type Password struct { Value string // private content Path *string // path of the file with the password }
func (*Password) UnmarshalText ¶
UnmarshalText unmarshals the Password using the following rules Password can be prefixed by two options
'file://': <path to file containing the password> 'password//': raw password
type ZkFiles ¶ added in v0.0.2
type ZkFiles struct { Url string Path string `validate:"required"` ProvingKeyFormat zkutils.ProvingKeyFormat CacheProvingKey bool Hashes ZkFilesHashes `validate:"required"` }
type ZkFilesHashes ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.