Documentation ¶
Index ¶
- Variables
- func GetBTCAdaptor() adaptor.ICryptoCurrency
- func GetConfigTest() error
- func GetERC20Adaptor() adaptor.ICryptoCurrency
- func GetETHAdaptor() adaptor.ICryptoCurrency
- func GetFabricAdaptor() adaptor.ICryptoCurrency
- func GetJuryAddr(chaincodeID string, chainName string, params []byte) (string, error)
- func GetJuryAddress(chaincode, chainName string, params []byte, iadaptor adaptor.ICryptoCurrency) (string, error)
- func GetJuryKeyInfo(chaincode, chainName string, params []byte, iadaptor adaptor.ICryptoCurrency) ([]byte, error)
- func GetJuryPubkey(chaincodeID string, chainName string, params []byte) (string, error)
- func ProcessOutChainCall(chaincodeID string, outChainCall *pb.PtnOutChainCall) (result string, err error)
- func SignMessage(chaincodeID string, chainName string, params []byte) (string, error)
- func SignTransaction(chaincodeID string, chainName string, params []byte) (string, error)
- type Ada
- type BTC
- type CCInfo
- type Callback
- type CallbackExcpet
- type Config
- type ETH
- type Fabric
- type KeyInfo
- type OutChainMethod
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Ada{ Btc: BTC{ NetID: 1, Host: "localhost:18332", RPCUser: "test", RPCPasswd: "123456", CertPath: "/home/pallet/wallet/btc/btctest/rpc.cert", WalletPasswd: "1", }, Eth: ETH{ NetID: 0, Rawurl: "https://mainnet.infura.io/", TxQueryUrl: "http://api-cn.etherscan.com/api?apikey=VYSBPQ383RJXM7HBQVTIK5NGIG8ZYVV6T6", }, ChainKeyKV: map[string]KeyInfo{ "btc": { ChaincodeKeys: map[string][]byte{}, AddressKeys: map[string][]byte{}, }, "eth": { ChaincodeKeys: map[string][]byte{}, AddressKeys: map[string][]byte{}, }, "fab": { ChaincodeKeys: map[string][]byte{}, AddressKeys: map[string][]byte{}, }, }, }, }
Functions ¶
func GetBTCAdaptor ¶
func GetBTCAdaptor() adaptor.ICryptoCurrency
func GetConfigTest ¶
func GetConfigTest() error
func GetERC20Adaptor ¶ added in v1.0.2
func GetERC20Adaptor() adaptor.ICryptoCurrency
func GetETHAdaptor ¶
func GetETHAdaptor() adaptor.ICryptoCurrency
func GetFabricAdaptor ¶ added in v1.0.8
func GetFabricAdaptor() adaptor.ICryptoCurrency
func GetJuryAddr ¶ added in v1.0.2
func GetJuryAddress ¶ added in v1.0.2
func GetJuryKeyInfo ¶ added in v1.0.2
func GetJuryPubkey ¶ added in v1.0.2
func ProcessOutChainCall ¶
func ProcessOutChainCall(chaincodeID string, outChainCall *pb.PtnOutChainCall) (result string, err error)
func SignMessage ¶ added in v1.0.2
Types ¶
type Callback ¶
type Callback func() adaptor.ICryptoCurrency
type CallbackExcpet ¶
type OutChainMethod ¶
type OutChainMethod struct {
Method string `json:"method"`
}
Click to show internal directories.
Click to hide internal directories.