Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IoTeXDIDABI defines the ABI of IoTeX DID contract IoTeXDIDABI = `` /* 3257-byte string literal not displayed */ // DeviceDecentralizedIdentifierABI defines the ABI of Device DID DeviceDecentralizedIdentifierABI = `` /* 6486-byte string literal not displayed */ MockDeviceDIDABI = `` /* 7633-byte string literal not displayed */ ControllerContractAddress = "io15kftve6k3nrwccwsahq205gckavzn8mkuf2ws3" DeviceOperatorContractAddress = "io1saftaaamturktykv27ftj32ckj86sqly0tgwjj" MockDeviceContractAddress = "io1zegt9x0kkt6v60d9c87aq96q3h63qv9wdjwkhe" ControllerDIDPrefix = "did:io:" MockDeviceDIDPrefix = "did:io:mock:" IOEndpoint = "api.testnet.iotex.one:443" )
Variables ¶
View Source
var ( GasPrice = big.NewInt(1e12) GasLimit = uint64(3000000) )
View Source
var CreateControllerDIDCmd = &cobra.Command{ Use: "create-controller", Short: "Create DID for controller", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return createControllerDID() }, }
View Source
var CreateDeviceDIDCmd = &cobra.Command{ Use: "create-device", Short: "Create DID for device", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return createDeviceDID() }, }
View Source
var DeleteControllerDIDCmd = &cobra.Command{ Use: "delete-controller", Short: "Delete DID for controller", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return deleteControllerDID() }, }
View Source
var DeleteDeviceDIDCmd = &cobra.Command{ Use: "delete-device", Short: "Delete DID for device", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return deleteDeviceDID() }, }
View Source
var GetControllerDIDCmd = &cobra.Command{ Use: "get-controller", Short: "Get DID document hash and URI for controller", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return getControllerDID() }, }
View Source
var GetDeviceDIDCmd = &cobra.Command{ Use: "get-device", Short: "Get DID document hash and URI for device", RunE: func(cmd *cobra.Command, args []string) error { cmd.SilenceUsage = true return getDeviceDID() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.