Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version + const KeyBlockTimeOut + const KeySetInstallBaseGas + const KeySetInstallGasPrice + const KeySetInvokeGasPrice + const KeyVMType + const ValueVMTypeDockerJava + type TlsConfig struct + CertFile string + PrivKeyFile string + ServerName string + TrustCaList []string v3.0.0 Dec 23, 2022 Changes in this version + const DecBase + const HibeMsgCipherTextKey + const HibeMsgIdKey + const HibeMsgKey + const HibeParamsKey + const HibeParamsValueKey + const KeyAddress + const KeyAmount + const KeyBlockContractBlockHash + const KeyBlockContractBlockHeight + const KeyBlockContractTruncateModel + const KeyBlockContractTruncateValueLen + const KeyBlockContractTxId + const KeyBlockContractWithRWSet + const KeyBlockInterval + const KeyBlockSize + const KeyBlockTxCapacity + const KeyCaCert + const KeyCertCrl + const KeyCertHashes + const KeyCerts + const KeyChainConfigAddrType + const KeyChainConfigContractBlockHeight + const KeyChainConfigContractNewNodeId + const KeyChainConfigContractNodeId + const KeyChainConfigContractNodeIds + const KeyChainConfigContractOrgId + const KeyChainConfigContractRoot + const KeyChainConfigContractTrustMemberInfo + const KeyChainConfigContractTrustMemberNodeId + const KeyChainConfigContractTrustMemberOrgId + const KeyChainConfigContractTrustMemberRole + const KeyCodeHash + const KeyCodeHeader + const KeyContractName + const KeyDeployReq + const KeyDistributionFromSlashing + const KeyDistributionPerBlock + const KeyEnableOptimizeChargeGas + const KeyEnclaveId + const KeyEpochBlockNumber + const KeyEpochValidatorNumber + const KeyEvents + const KeyFrom + const KeyGasAddressKey + const KeyGasBalancePublicKey + const KeyGasBatchRecharge + const KeyGasChargeGasAmount + const KeyGasChargePublicKey + const KeyGasExchangeRate + const KeyGasFrozenPublicKey + const KeyGasPublicKey + const KeyIsDeploy + const KeyKey + const KeyMinSelfDelegation + const KeyMultiSignEnableManualRun + const KeyOrderId + const KeyOrgIds + const KeyOwner + const KeyPayload + const KeyPrefix + const KeyPrivateDir + const KeyPrivateReq + const KeyProof + const KeyPubkey + const KeyPubkeyOrgId + const KeyPubkeyRole + const KeyRWSet + const KeyReport + const KeyReportHash + const KeyResult + const KeySetInvokeBaseGas + const KeySign + const KeySignPairs + const KeySlashingPerBlock + const KeyTo + const KeyTxParamterSize + const KeyTxSchedulerTimeout + const KeyTxSchedulerValidateTimeout + const KeyTxTimeOut + const KeyValue + const KeyVersion + const MysqlDBNamePrefix + const MysqlTableNamePrefix + const RowsPerBlockInfoTable + const SUCCESS + const Separator + var IV = [8]uint64 + var S256 = btcec.S256() + func BytesToI64(b []byte) (int64, error) + func BytesToU64(b []byte) (uint64, error) + func CheckProposalRequestResp(resp *common.TxResponse, needContractResult bool) error + func CreateEthAddress(pub ecdsa.PublicKey) ([]byte, error) + func DecryptHibeTx(localId string, hibeParams []byte, hibePrvKey []byte, tx *common.Transaction, ...) ([]byte, error) + func Exists(path string) bool + func F(h *[8]uint64, m [16]uint64, c [2]uint64, f bool, rounds uint32) + func GenerateECDSAKey() (*ecdsa.PrivateKey, error) + func GetCertificateId(certPEM []byte, hashType string) ([]byte, error) + func GetCertificateIdFromDER(certDER []byte, hashType string) ([]byte, error) + func GetNanoByTimestampTxId(timestampTxId string) (nano int64, err error) + func GetRandTxId() string + func GetTimestampTxId() string + func GetTimestampTxIdByNano(nano int64) string + func I64ToBytes(i int64) []byte + func IsArchived(txStatusCode common.TxStatusCode) bool + func IsArchivedString(txStatusCode string) bool + func MakeEndorser(orgId string, hashType crypto.HashType, memberType accesscontrol.MemberType, ...) (*common.EndorsementEntry, error) + func MakeEndorserWithPath(keyFilePath, crtFilePath string, payload *common.Payload) (*common.EndorsementEntry, error) + func MakeEndorserWithPathAndCSP(keyFilePath, crtFilePath string, p11Handle interface{}, kmsEnabled bool, ...) (*common.EndorsementEntry, error) + func MakeEndorserWithPem(keyPem, certPem []byte, payload *common.Payload) (*common.EndorsementEntry, error) + func MakePkEndorserWithPath(keyFilePath string, hashType crypto.HashType, orgId string, ...) (*common.EndorsementEntry, error) + func MakePkEndorserWithPem(keyPem []byte, hashType crypto.HashType, orgId string, payload *common.Payload) (*common.EndorsementEntry, error) + func MarshalECDSAPrivateKey(priv *ecdsa.PrivateKey) ([]byte, error) + func NewEndorser(orgId string, certPem []byte, sig []byte) *common.EndorsementEntry + func NewEndorserWithMemberType(orgId string, memberInfo []byte, memberType accesscontrol.MemberType, ...) *common.EndorsementEntry + func NewPayload(opts ...PayloadOption) *commonPb.Payload + func NewPkEndorser(orgId string, pk []byte, sig []byte) *common.EndorsementEntry + func ParseCert(crtPEM []byte) (*bcx509.Certificate, error) + func ParseECDSAPrivateKey(buf []byte) (*ecdsa.PrivateKey, error) + func ReadHibeParamsWithFilePath(hibeParamsFilePath string) ([]byte, error) + func ReadHibePrvKeysWithFilePath(hibePrvKeyFilePath string) ([]byte, error) + func Sign(priv *ecdsa.PrivateKey, hash []byte) ([]byte, error) + func SignPayload(privateKey crypto.PrivateKey, cert *bcx509.Certificate, ...) ([]byte, error) + func SignPayloadBytes(privateKey crypto.PrivateKey, cert *bcx509.Certificate, payloadBytes []byte) ([]byte, error) + func SignPayloadBytesWithHashType(privateKey crypto.PrivateKey, hashType crypto.HashType, payloadBytes []byte) ([]byte, error) + func SignPayloadWithHashType(privateKey crypto.PrivateKey, hashType crypto.HashType, ...) ([]byte, error) + func SignPayloadWithPath(keyFilePath, crtFilePath string, payload *common.Payload) ([]byte, error) + func SignPayloadWithPkPath(keyFilePath, hashType string, payload *common.Payload) ([]byte, error) + func U64ToBytes(i uint64) []byte + type BigInteger struct + Value *big.Int + func Div(x, y *BigInteger) *BigInteger + func Mod(x, y *BigInteger) *BigInteger + func Mul(x, y *BigInteger) *BigInteger + func NewBigInteger(value string) *BigInteger + func NewZeroBigInteger() *BigInteger + func Sub(x, y *BigInteger) *BigInteger + func Sum(x, y *BigInteger) *BigInteger + func (x *BigInteger) Add(y *BigInteger) + func (x *BigInteger) Cmp(y *BigInteger) int + func (x *BigInteger) String() string + func (x *BigInteger) Sub(y *BigInteger) + type ChainClientConfigModel struct + ChainClientConfig chainClientConfigModel + func InitConfig(confPath string) (*ChainClientConfigModel, error) + type Logger interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + type PayloadOption func(*commonPb.Payload) + func AddParameter(parameter *commonPb.KeyValuePair) PayloadOption + func WithChainId(chainId string) PayloadOption + func WithContractName(contractName string) PayloadOption + func WithExpirationTime(expirationTime int64) PayloadOption + func WithLimit(limit *commonPb.Limit) PayloadOption + func WithMethod(method string) PayloadOption + func WithParameters(parameters []*commonPb.KeyValuePair) PayloadOption + func WithSequence(sequence uint64) PayloadOption + func WithTimestamp(timestamp int64) PayloadOption + func WithTxId(txId string) PayloadOption + func WithTxType(txType commonPb.TxType) PayloadOption Other modules containing this package chainmaker.org/chainmaker/sdk-go/v2