common

package
v0.0.0-...-ab7fe72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CertPath string = "D:/yeepay/e-chain.net.cn_server.crt"
View Source
const ERC721ABIStr string = `` /* 6681-byte string literal not displayed */
View Source
const MerchantNo string = "3203001000583086614"
View Source
const RsaPrivate string = "" /* 1628-byte string literal not displayed */
View Source
const UrlBase string = "https://qa-api.e-chain.net.cn"

测试测试

View Source
const UrlDeploy string = UrlBase + "/chain/contract/deploy"
View Source
const UrlQuery string = UrlBase + "/chain/rpc/query"

压测环境 const UrlBase string = "https://perf-api.e-chain.net.cn"

View Source
const UrlTx string = UrlBase + "/chain/rpc/tx"

Variables

This section is empty.

Functions

func EncodeBalanceOf

func EncodeBalanceOf(owner string) (string, error)

func EncodeOwnerOf

func EncodeOwnerOf(tokenId string) (string, error)

func GetTimeMilli

func GetTimeMilli() int64

func LoadRsaPrivateKey

func LoadRsaPrivateKey(private64 string) (*rsa.PrivateKey, error)

func LoadRsaPublicKey

func LoadRsaPublicKey(public64 string) (*rsa.PublicKey, error)

func RsaSign

func RsaSign(privateKey *rsa.PrivateKey, data []byte) (string, error)

func RsaVerify

func RsaVerify(signature string, publicKey *rsa.PublicKey, data []byte) error

Types

type AnyType

type AnyType interface {
}

type DeployRequest

type DeployRequest struct {
	ReqNo        string `json:"reqNo"`
	ContractType string `json:"contractType"`
	Owner        string `json:"owner"`
}

type JsonRpc

type JsonRpc struct {
	Method string    `json:"method"`
	Params []AnyType `json:"params"`
}

type QueryRequest

type QueryRequest struct {
	JsonRpc JsonRpc `json:"jsonRpc"`
}

type TxRequest

type TxRequest struct {
	ReqNo       string  `json:"reqNo"`
	JsonRpc     JsonRpc `json:"jsonRpc"`
	CallbackUrl string  `json:"callbackUrl"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL