Documentation ¶
Index ¶
- Constants
- func GetGatewayPublicKey(algorithmType enum.App_AlgorithmType) string
- func SetTest()
- type AppInfo
- type CertInfo
- type Config
- func NewConfig(api, userCode, appCode, prk, mspDir string) (*Config, error)
- func NewConfigFormFile(path string) (*Config, error)
- func NewMockCitaConfig() (*Config, error)
- func NewMockFabricConfig() (*Config, error)
- func NewMockFiscoConfig() (*Config, error)
- func NewMockXuperchainConfig() (*Config, error)
- func (c *Config) GetAppCert() CertInfo
- func (c *Config) GetAppInfo() AppInfo
- func (c *Config) GetKSPath() string
- func (c *Config) GetNodeApi() string
- func (c *Config) GetReqHeader() base.ReqHeader
- func (c *Config) GetUSPath() string
- func (c *Config) GetUserCode() string
- func (c *Config) Init() error
Constants ¶
View Source
const ( PubK_SM = `` /* 177-byte string literal not displayed */ PubK_R1 = `` /* 1093-byte string literal not displayed */ Pubk_K1 = `` /* 173-byte string literal not displayed */ PubK_SM_test = `` /* 177-byte string literal not displayed */ PubK_R1_test = `` /* 1093-byte string literal not displayed */ Pubk_K1_test = `` /* 173-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func GetGatewayPublicKey ¶ added in v1.2.0
func GetGatewayPublicKey(algorithmType enum.App_AlgorithmType) string
Types ¶
type AppInfo ¶ added in v1.2.0
type AppInfo struct { AppCode string AppType string CAType enum.App_CaType AlgorithmType enum.App_AlgorithmType MspId string ChannelId string Version string }
func (*AppInfo) TxHash ¶ added in v1.2.0
func (a *AppInfo) TxHash() key.HashProvider
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
Create a profile information api: address of the node gateway userCode: user's code appCode: DApp code prk : private key of DApp cert
func NewConfigFormFile ¶ added in v1.1.2
NewConfigFormFile get config from file, if path is empty ,use the ./conf/config.json file in the root directory
func NewMockCitaConfig ¶ added in v1.0.4
func NewMockFabricConfig ¶ added in v1.0.4
func NewMockFiscoConfig ¶ added in v1.0.4
func NewMockXuperchainConfig ¶ added in v1.0.4
func (*Config) GetAppCert ¶
func (*Config) GetAppInfo ¶
func (*Config) GetNodeApi ¶
func (*Config) GetReqHeader ¶
func (*Config) GetUserCode ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.