Documentation ¶
Index ¶
- Variables
- func CfdAddBlindTxInData(arg1 uintptr, arg2 uintptr, arg3 string, arg4 Uint32_t, arg5 string, ...) (_swig_ret int)
- func CfdAddBlindTxOutData(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 string) (_swig_ret int)
- func CfdAddCoinSelectionAmount(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 Int64_t, arg5 string) (_swig_ret int)
- func CfdAddCoinSelectionUtxo(arg1 uintptr, arg2 uintptr, arg3 Int32_t, arg4 string, arg5 Uint32_t, ...) (_swig_ret int)
- func CfdAddConfidentialTxDerSign(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 bool, arg6 string, ...) (_swig_ret int)
- func CfdAddConfidentialTxIn(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 Uint32_t, ...) (_swig_ret int)
- func CfdAddConfidentialTxOut(arg1 uintptr, arg2 string, arg3 string, arg4 Int64_t, arg5 string, arg6 string, ...) (_swig_ret int)
- func CfdAddConfidentialTxSign(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 bool, arg6 string, ...) (_swig_ret int)
- func CfdAddMultisigScriptData(arg1 uintptr, arg2 uintptr, arg3 string) (_swig_ret int)
- func CfdAddMultisigScriptSigData(arg1 uintptr, arg2 uintptr, arg3 string, arg4 string) (_swig_ret int)
- func CfdAddMultisigScriptSigDataToDer(arg1 uintptr, arg2 uintptr, arg3 string, arg4 int, arg5 bool, arg6 string) (_swig_ret int)
- func CfdAddMultisigSignData(arg1 uintptr, arg2 uintptr, arg3 string, arg4 string) (_swig_ret int)
- func CfdAddMultisigSignDataToDer(arg1 uintptr, arg2 uintptr, arg3 string, arg4 int, arg5 bool, arg6 string) (_swig_ret int)
- func CfdAddTxInForEstimateFee(arg1 uintptr, arg2 uintptr, arg3 string, arg4 Uint32_t, arg5 string, ...) (_swig_ret int)
- func CfdCalculateEcSignature(arg1 uintptr, arg2 string, arg3 string, arg4 string, arg5 int, arg6 bool, ...) (_swig_ret int)
- func CfdCloneHandle(arg1 uintptr, arg2 *uintptr) (_swig_ret int)
- func CfdConvertScriptAsmToHex(arg1 uintptr, arg2 string, arg3 *string) (_swig_ret int)
- func CfdCopyErrorState(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdCreateAddress(arg1 uintptr, arg2 int, arg3 string, arg4 string, arg5 int, arg6 *string, ...) (_swig_ret int)
- func CfdCreateConfidentialAddress(arg1 uintptr, arg2 string, arg3 string, arg4 *string) (_swig_ret int)
- func CfdCreateConfidentialSighash(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 int, arg6 string, ...) (_swig_ret int)
- func CfdCreateExtPubkey(arg1 uintptr, arg2 string, arg3 int, arg4 *string) (_swig_ret int)
- func CfdCreateExtkeyFromParentPath(arg1 uintptr, arg2 string, arg3 string, arg4 int, arg5 int, arg6 *string) (_swig_ret int)
- func CfdCreateExtkeyFromSeed(arg1 uintptr, arg2 string, arg3 int, arg4 int, arg5 *string) (_swig_ret int)
- func CfdCreateHandle(arg1 *uintptr) (_swig_ret int)
- func CfdCreateKeyPair(arg1 uintptr, arg2 bool, arg3 int, arg4 *string, arg5 *string, arg6 *string) (_swig_ret int)
- func CfdCreateSimpleHandle(arg1 *uintptr) (_swig_ret int)
- func CfdEncodeSignatureByDer(arg1 uintptr, arg2 string, arg3 int, arg4 bool, arg5 *string) (_swig_ret int)
- func CfdFinalize(arg1 bool) (_swig_ret int)
- func CfdFinalizeBlindTx(arg1 uintptr, arg2 uintptr, arg3 string, arg4 *string) (_swig_ret int)
- func CfdFinalizeCoinSelection(arg1 uintptr, arg2 uintptr, arg3 Int64_t) (_swig_ret int)
- func CfdFinalizeElementsMultisigSign(arg1 uintptr, arg2 uintptr, arg3 string, arg4 string, arg5 Uint32_t, arg6 int, ...) (_swig_ret int)
- func CfdFinalizeEstimateFee(arg1 uintptr, arg2 uintptr, arg3 string, arg4 string, arg5 Int64_t, ...) (_swig_ret int)
- func CfdFinalizeMultisigScript(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 *string, arg5 *string, ...) (_swig_ret int)
- func CfdFinalizeMultisigScriptSig(arg1 uintptr, arg2 uintptr, arg3 string, arg4 *string) (_swig_ret int)
- func CfdFreeAddressesMultisigHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeBlindHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeBuffer(arg1 uintptr) (_swig_ret int)
- func CfdFreeCoinSelectionHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeDescriptorHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeEstimateFeeHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeHandle(arg1 uintptr) (_swig_ret int)
- func CfdFreeMultisigScriptHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeMultisigScriptSigHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeMultisigSignHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdFreeScriptItemHandle(arg1 uintptr, arg2 uintptr) (_swig_ret int)
- func CfdGetAddressFromLockingScript(arg1 uintptr, arg2 string, arg3 int, arg4 *string) (_swig_ret int)
- func CfdGetAddressFromMultisigKey(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 *string, arg5 *string) (_swig_ret int)
- func CfdGetAddressInfo(arg1 uintptr, arg2 string, arg3 *int, arg4 *int, arg5 *int, arg6 *string, ...) (_swig_ret int)
- func CfdGetAddressesFromMultisig(arg1 uintptr, arg2 string, arg3 int, arg4 int, arg5 *uintptr, arg6 Uint32_t) (_swig_ret int)
- func CfdGetConfidentialTxIn(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 *string, arg5 Uint32_t, ...) (_swig_ret int)
- func CfdGetConfidentialTxInCount(arg1 uintptr, arg2 string, arg3 Uint32_t) (_swig_ret int)
- func CfdGetConfidentialTxInWitness(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 Uint32_t, arg5 *string) (_swig_ret int)
- func CfdGetConfidentialTxInWitnessCount(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 Uint32_t) (_swig_ret int)
- func CfdGetConfidentialTxInfo(arg1 uintptr, arg2 string, arg3 *string, arg4 *string, arg5 *string, ...) (_swig_ret int)
- func CfdGetConfidentialTxOut(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 *string, arg5 Int64_t, ...) (_swig_ret int)
- func CfdGetConfidentialTxOutCount(arg1 uintptr, arg2 string, arg3 Uint32_t) (_swig_ret int)
- func CfdGetDescriptorChecksum(arg1 uintptr, arg2 int, arg3 string, arg4 *string) (_swig_ret int)
- func CfdGetDescriptorData(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 Uint32_t, arg5 Uint32_t, ...) (_swig_ret int)
- func CfdGetDescriptorMultisigKey(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 *int, arg5 *string, ...) (_swig_ret int)
- func CfdGetExtkeyInformation(arg1 uintptr, arg2 string, arg3 *string, arg4 *string, arg5 *string, ...) (_swig_ret int)
- func CfdGetIssuanceBlindingKey(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 *string) (_swig_ret int)
- func CfdGetLastErrorCode(arg1 uintptr) (_swig_ret int)
- func CfdGetLastErrorMessage(arg1 uintptr, arg2 *string) (_swig_ret int)
- func CfdGetParentExtkeyPathData(arg1 uintptr, arg2 string, arg3 string, arg4 int, arg5 *string, arg6 *string) (_swig_ret int)
- func CfdGetPrivkeyFromExtkey(arg1 uintptr, arg2 string, arg3 int, arg4 *string, arg5 *string) (_swig_ret int)
- func CfdGetPrivkeyFromWif(arg1 uintptr, arg2 string, arg3 int, arg4 *string) (_swig_ret int)
- func CfdGetPrivkeyWif(arg1 uintptr, arg2 string, arg3 int, arg4 bool, arg5 *string) (_swig_ret int)
- func CfdGetPubkeyFromExtkey(arg1 uintptr, arg2 string, arg3 int, arg4 *string) (_swig_ret int)
- func CfdGetPubkeyFromPrivkey(arg1 uintptr, arg2 string, arg3 string, arg4 bool, arg5 *string) (_swig_ret int)
- func CfdGetScriptItem(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 *string) (_swig_ret int)
- func CfdGetSelectedCoinAssetAmount(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 Int64_t) (_swig_ret int)
- func CfdGetSelectedCoinIndex(arg1 uintptr, arg2 uintptr, arg3 Uint32_t, arg4 Int32_t) (_swig_ret int)
- func CfdGetSupportedFunction(arg1 Uint64_t) (_swig_ret int)
- func CfdGetTxInIssuanceInfo(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 *string, arg5 *string, ...) (_swig_ret int)
- func CfdGoAddBlindTxInData(handle uintptr, blindHandle uintptr, txid string, vout uint32, asset string, ...) (err error)
- func CfdGoAddBlindTxOutData(handle uintptr, blindHandle uintptr, index uint32, confidentialKey string) (err error)
- func CfdGoAddConfidentialTxDerSign(handle uintptr, txHex string, txid string, vout uint32, isWitness bool, ...) (outputTxHex string, err error)
- func CfdGoAddConfidentialTxIn(handle uintptr, txHex string, txid string, vout uint32, sequence uint32) (outputTxHex string, err error)
- func CfdGoAddConfidentialTxOut(handle uintptr, txHex string, asset string, satoshiAmount int64, ...) (outputTxHex string, err error)
- func CfdGoAddConfidentialTxSign(handle uintptr, txHex string, txid string, vout uint32, isWitness bool, ...) (outputTxHex string, err error)
- func CfdGoAddConfidentialTxUnlockingScript(handle uintptr, txHex, txid string, vout uint32, isWitness bool, ...) (outputTxHex string, err error)
- func CfdGoAddConfidentialTxUnlockingScriptByIndex(handle uintptr, txHex string, index uint32, isWitness bool, ...) (outputTxHex string, err error)
- func CfdGoAddDestoryConfidentialTxOut(handle uintptr, txHex string, asset string, satoshiAmount int64) (outputTxHex string, err error)
- func CfdGoAddMultisigSignData(handle uintptr, multisigSignHandle uintptr, signature string, ...) (err error)
- func CfdGoAddMultisigSignDataToDer(handle uintptr, multisigSignHandle uintptr, signature string, sighashType int, ...) (err error)
- func CfdGoCalculateEcSignature(handle uintptr, sighash string, privkeyHex string, privkeyWif string, ...) (signature string, err error)
- func CfdGoCloneHandle(sourceHandle uintptr) (handle uintptr, err error)
- func CfdGoCoinSelection(handle uintptr, utxos []CfdUtxo, targetAmounts []CfdTargetAmount, ...) (selectUtxos []CfdUtxo, totalAmounts []CfdTargetAmount, utxoFee int64, ...)
- func CfdGoConvertScriptAsmToHex(handle uintptr, scriptAsm string) (script string, err error)
- func CfdGoCopyAndFreeHandle(parentHandle uintptr, handle uintptr) (err error)
- func CfdGoCreateAddress(handle uintptr, hashType int, pubkey string, redeemScript string, ...) (address string, lockingScript string, p2shSegwitLockingScript string, ...)
- func CfdGoCreateConfidentialAddress(handle uintptr, address string, confidentialKey string) (confidentialAddress string, err error)
- func CfdGoCreateConfidentialSighash(handle uintptr, txHex string, txid string, vout uint32, hashType int, ...) (sighash string, err error)
- func CfdGoCreateExtPubkey(handle uintptr, extkey string, networkType int) (extPubkey string, err error)
- func CfdGoCreateExtkeyFromParentPath(handle uintptr, extkey string, path string, networkType int, keyType int) (childExtkey string, err error)
- func CfdGoCreateExtkeyFromSeed(handle uintptr, seed string, networkType int, keyType int) (extkey string, err error)
- func CfdGoCreateHandle() (handle uintptr, err error)
- func CfdGoCreateKeyPair(handle uintptr, isCompress bool, networkType int) (pubkey string, privkeyHex string, privkeyWif string, err error)
- func CfdGoCreateMultisigScript(handle uintptr, networkType int, hashType int, pubkeys []string, ...) (address string, redeemScript string, witnessScript string, err error)
- func CfdGoCreateMultisigScriptSig(handle uintptr, signItems []CfdMultisigSignData, redeemScript string) (scriptsig string, err error)
- func CfdGoCreateScript(handle uintptr, scriptItems []string) (script string, err error)
- func CfdGoEncodeSignatureByDer(handle uintptr, signature string, sighashType int, sighash_anyone_can_pay bool) (derSignature string, err error)
- func CfdGoEstimateFee(handle uintptr, txHex string, inputs []CfdEstimateFeeInput, ...) (totalFee, txFee, inputFee int64, err error)
- func CfdGoFinalizeBlindTx(handle uintptr, blindHandle uintptr, txHex string) (outputTxHex string, err error)
- func CfdGoFinalizeElementsMultisigSign(handle uintptr, multiSignHandle uintptr, txHex string, txid string, ...) (outputTxHex string, err error)
- func CfdGoFreeBlindHandle(handle uintptr, blindHandle uintptr) (err error)
- func CfdGoFreeHandle(handle uintptr) (err error)
- func CfdGoFreeMultisigSignHandle(handle uintptr, multisigSignHandle uintptr) (err error)
- func CfdGoGetAddressFromLockingScript(handle uintptr, lockingScript string, networkType int) (address string, err error)
- func CfdGoGetAddressesFromMultisig(handle uintptr, redeemScript string, networkType int, hashType int) (addressList []string, pubkeyList []string, err error)
- func CfdGoGetConfidentialTxIn(handle uintptr, txHex string, index uint32) (txid string, vout uint32, sequence uint32, scriptSig string, err error)
- func CfdGoGetConfidentialTxInCount(handle uintptr, txHex string) (count uint32, err error)
- func CfdGoGetConfidentialTxInWitness(handle uintptr, txHex string, txinIndex uint32, stackIndex uint32) (stackData string, err error)
- func CfdGoGetConfidentialTxInWitnessCount(handle uintptr, txHex string, txinIndex uint32) (count uint32, err error)
- func CfdGoGetConfidentialTxOut(handle uintptr, txHex string, index uint32) (asset string, satoshiAmount int64, valueCommitment string, nonce string, ...)
- func CfdGoGetConfidentialTxOutCount(handle uintptr, txHex string) (count uint32, err error)
- func CfdGoGetDescriptorChecksum(handle uintptr, networkType int, descriptor string) (descriptorAddedChecksum string, err error)
- func CfdGoGetIssuanceBlindingKey(handle uintptr, masterBlindingKey string, txid string, vout uint32) (blindingKey string, err error)
- func CfdGoGetLastErrorMessage(handle uintptr) (message string, err error)
- func CfdGoGetParentExtkeyPathData(handle uintptr, parentExtkey, path string, childExtkeyType int) (keyPathData, childExtkey string, err error)
- func CfdGoGetPrivkeyFromExtkey(handle uintptr, extkey string, networkType int) (privkeyHex string, privkeyWif string, err error)
- func CfdGoGetPrivkeyFromWif(handle uintptr, privkeyWif string, networkType int) (privkeyHex string, err error)
- func CfdGoGetPrivkeyWif(handle uintptr, privkeyHex string, networkType int, isCompress bool) (privkeyWif string, err error)
- func CfdGoGetPubkeyFromExtkey(handle uintptr, extkey string, networkType int) (pubkey string, err error)
- func CfdGoGetPubkeyFromPrivkey(handle uintptr, privkeyHex string, privkeyWif string, isCompress bool) (pubkey string, err error)
- func CfdGoGetSupportedFunction() (funcFlag uint64, err error)
- func CfdGoGetTxInIssuanceInfo(handle uintptr, txHex string, index uint32) (entropy string, nonce string, assetAmount int64, assetValue string, ...)
- func CfdGoInitializeBlindTx(handle uintptr) (blindHandle uintptr, err error)
- func CfdGoInitializeConfidentialTx(handle uintptr, version uint32, locktime uint32) (txHex string, err error)
- func CfdGoInitializeMultisigSign(handle uintptr) (multisigSignHandle uintptr, err error)
- func CfdGoNormalizeSignature(handle uintptr, signature string) (normalizedSignature string, err error)
- func CfdGoParseConfidentialAddress(handle uintptr, confidentialAddress string) (address string, confidentialKey string, networkType int, err error)
- func CfdGoParseDescriptor(handle uintptr, descriptor string, networkType int, bip32DerivationPath string) (descriptorDataList []CfdDescriptorData, multisigList []CfdDescriptorKeyData, ...)
- func CfdGoParsePrivkeyWif(handle uintptr, privkeyWif string) (privkeyHex string, networkType int, isCompress bool, err error)
- func CfdGoParseScript(handle uintptr, script string) (scriptItems []string, err error)
- func CfdGoSetElementsMultisigScriptSig(handle uintptr, txHex string, txid string, vout uint32, scriptsig string, ...) (outputTxHex string, err error)
- func CfdGoSetRawReissueAsset(handle uintptr, txHex string, txid string, vout uint32, ...) (asset string, outputTxHex string, err error)
- func CfdGoUnblindIssuance(handle uintptr, txHex string, index uint32, assetBlindingKey string, ...) (asset string, assetAmount int64, assetBlindFactor string, ...)
- func CfdGoUnblindTxOut(handle uintptr, txHex string, index uint32, blindingKey string) (asset string, satoshiAmount int64, assetBlindFactor string, ...)
- func CfdGoUpdateConfidentialTxOut(handle uintptr, txHex string, index uint32, asset string, satoshiAmount int64, ...) (outputTxHex string, err error)
- func CfdGoVerifyConfidentialTxSignature(handle uintptr, txHex, signature, pubkey, script, txid string, vout uint32, ...) (result bool, err error)
- func CfdGoVerifyConfidentialTxSignatureByIndex(handle uintptr, txHex, signature, pubkey, script string, index uint32, ...) (result bool, err error)
- func CfdInitialize() (_swig_ret int)
- func CfdInitializeBlindTx(arg1 uintptr, arg2 *uintptr) (_swig_ret int)
- func CfdInitializeCoinSelection(arg1 uintptr, arg2 Uint32_t, arg3 Uint32_t, arg4 string, arg5 Int64_t, ...) (_swig_ret int)
- func CfdInitializeConfidentialTx(arg1 uintptr, arg2 Uint32_t, arg3 Uint32_t, arg4 *string) (_swig_ret int)
- func CfdInitializeEstimateFee(arg1 uintptr, arg2 *uintptr, arg3 bool) (_swig_ret int)
- func CfdInitializeMultisigScript(arg1 uintptr, arg2 int, arg3 int, arg4 *uintptr) (_swig_ret int)
- func CfdInitializeMultisigScriptSig(arg1 uintptr, arg2 *uintptr) (_swig_ret int)
- func CfdInitializeMultisigSign(arg1 uintptr, arg2 *uintptr) (_swig_ret int)
- func CfdNormalizeSignature(arg1 uintptr, arg2 string, arg3 *string) (_swig_ret int)
- func CfdParseConfidentialAddress(arg1 uintptr, arg2 string, arg3 *string, arg4 *string, arg5 *int) (_swig_ret int)
- func CfdParseDescriptor(arg1 uintptr, arg2 string, arg3 int, arg4 string, arg5 *uintptr, arg6 Uint32_t) (_swig_ret int)
- func CfdParsePrivkeyWif(arg1 uintptr, arg2 string, arg3 *string, arg4 *int, arg5 *bool) (_swig_ret int)
- func CfdParseScript(arg1 uintptr, arg2 string, arg3 *uintptr, arg4 Uint32_t) (_swig_ret int)
- func CfdSetRawReissueAsset(arg1 uintptr, arg2 string, arg3 string, arg4 Uint32_t, arg5 Int64_t, ...) (_swig_ret int)
- func CfdUnblindIssuance(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 string, arg5 string, ...) (_swig_ret int)
- func CfdUnblindTxOut(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 string, arg5 *string, ...) (_swig_ret int)
- func CfdUpdateConfidentialTxOut(arg1 uintptr, arg2 string, arg3 Uint32_t, arg4 string, arg5 Int64_t, ...) (_swig_ret int)
- func CfdVerifyConfidentialTxSignature(arg1 uintptr, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, ...) (_swig_ret int)
- func Swig_free(arg1 uintptr)
- func Swig_malloc(arg1 int) (_swig_ret uintptr)
- type CfdAddressInfo
- type CfdAddressType
- type CfdCoinSelectionOption
- type CfdDescriptorData
- type CfdDescriptorKeyData
- type CfdDescriptorKeyType
- type CfdDescriptorScriptType
- type CfdErrorCode
- type CfdEstimateFeeInput
- type CfdEstimateFeeOption
- type CfdExtKeyType
- type CfdExtkeyData
- type CfdHashType
- type CfdLibraryFunction
- type CfdMultisigSignData
- type CfdNetworkType
- type CfdSequenceLockTime
- type CfdSighashType
- type CfdTargetAmount
- type CfdTxData
- type CfdUtxo
- type CfdWitnessVersion
- type Int32_t
- type Int64_t
- type SwigcptrInt32_t
- type SwigcptrInt64_t
- type SwigcptrUint32_t
- type SwigcptrUint64_t
- type Uint32_t
- type Uint64_t
Constants ¶
This section is empty.
Variables ¶
View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}
Functions ¶
func CfdAddBlindTxInData ¶
func CfdAddBlindTxOutData ¶
func CfdAddCoinSelectionUtxo ¶
func CfdAddConfidentialTxIn ¶
func CfdAddConfidentialTxOut ¶
func CfdAddMultisigSignData ¶
func CfdCalculateEcSignature ¶
func CfdCloneHandle ¶
func CfdCopyErrorState ¶
func CfdCreateAddress ¶
func CfdCreateExtPubkey ¶
func CfdCreateExtkeyFromSeed ¶
func CfdCreateHandle ¶
func CfdCreateKeyPair ¶
func CfdCreateSimpleHandle ¶
func CfdEncodeSignatureByDer ¶
func CfdFinalize ¶
func CfdFinalizeBlindTx ¶
func CfdFinalizeEstimateFee ¶
func CfdFreeBlindHandle ¶
func CfdFreeBuffer ¶
func CfdFreeDescriptorHandle ¶
func CfdFreeHandle ¶
func CfdFreeScriptItemHandle ¶
func CfdGetAddressInfo ¶
func CfdGetConfidentialTxIn ¶
func CfdGetConfidentialTxOut ¶
func CfdGetDescriptorData ¶
func CfdGetExtkeyInformation ¶
func CfdGetLastErrorCode ¶
func CfdGetLastErrorMessage ¶
func CfdGetPrivkeyFromExtkey ¶
func CfdGetPrivkeyFromWif ¶
func CfdGetPrivkeyWif ¶
func CfdGetPubkeyFromExtkey ¶
func CfdGetPubkeyFromPrivkey ¶
func CfdGetScriptItem ¶
func CfdGetSelectedCoinIndex ¶
func CfdGetSupportedFunction ¶
func CfdGetTxInIssuanceInfo ¶
func CfdGoAddBlindTxInData ¶
func CfdGoAddBlindTxInData(handle uintptr, blindHandle uintptr, txid string, vout uint32, asset string, assetBlindFactor string, valueBlindFactor string, satoshiAmount int64, assetKey string, tokenKey string) (err error)
*
- Add blind transaction txin data.
- param: handle cfd handle
- param: blindHandle blindTx handle
- param: txid txin txid
- param: vout txin vout
- param: asset utxo asset
- param: assetBlindFactor utxo asset blind factor
- param: valueBlindFactor utxo amount blind factor
- param: satoshiAmount utxo amount
- param: assetKey issuance asset blinding key
- param: tokenKey issuance token blinding key
- return: err error
func CfdGoAddBlindTxOutData ¶
func CfdGoAddBlindTxOutData(handle uintptr, blindHandle uintptr, index uint32, confidentialKey string) (err error)
*
- Add blind transaction txout data.
- param: handle cfd handle
- param: blindHandle blindTx handle
- param: index txout index
- param: confidentialKey confidential key
- return: err error
func CfdGoAddConfidentialTxDerSign ¶
func CfdGoAddConfidentialTxDerSign(handle uintptr, txHex string, txid string, vout uint32, isWitness bool, signDataHex string, sighashType int, sighashAnyoneCanPay bool, clearStack bool) (outputTxHex string, err error)
*
- Convert to der encode, and add sign data to confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: isWitness insert sign data to witness stack
- param: signDataHex sign data hex
- param: sighashType sighash type
- param: sighashAnyoneCanPay sighash anyone can pay flag
- param: clearStack cleanup stack
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddConfidentialTxIn ¶
func CfdGoAddConfidentialTxIn(handle uintptr, txHex string, txid string, vout uint32, sequence uint32) (outputTxHex string, err error)
*
- Add txin to confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txid
- param: vout vout
- param: sequence sequence
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddConfidentialTxOut ¶
func CfdGoAddConfidentialTxOut(handle uintptr, txHex string, asset string, satoshiAmount int64, valueCommitment string, address string, directLockingScript string, nonce string) (outputTxHex string, err error)
*
- Add txout to confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: asset asset
- param: satoshiAmount amount by satoshi
- param: valueCommitment amount by commitment bytes.
- param: address destination address
- param: directLockingScript locking script for direct insert.
- param: nonce confidential nonce
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddConfidentialTxSign ¶
func CfdGoAddConfidentialTxSign(handle uintptr, txHex string, txid string, vout uint32, isWitness bool, signDataHex string, clearStack bool) (outputTxHex string, err error)
*
- Add sign data to confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: isWitness insert sign data to witness stack
- param: signDataHex sign data hex
- param: clearStack cleanup stack
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddConfidentialTxUnlockingScript ¶
func CfdGoAddConfidentialTxUnlockingScript(handle uintptr, txHex, txid string, vout uint32, isWitness bool, unlockingScript string, clearStack bool) (outputTxHex string, err error)
*
- Add unlocking script to confidential transaction input.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: isWitness insert sign data to witness stack
- param: unlockingScript unlocking script hex
- param: clearStack cleanup stack
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddConfidentialTxUnlockingScriptByIndex ¶
func CfdGoAddConfidentialTxUnlockingScriptByIndex(handle uintptr, txHex string, index uint32, isWitness bool, unlockingScript string, clearStack bool) (outputTxHex string, err error)
*
- Add unlocking script to confidential transaction input by index.
- (prototype interface)
- param: handle cfd handle
- param: txHex transaction hex
- param: index input index
- param: isWitness insert sign data to witness stack
- param: unlockingScript unlocking script hex
- param: clearStack cleanup stack
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddDestoryConfidentialTxOut ¶
func CfdGoAddDestoryConfidentialTxOut(handle uintptr, txHex string, asset string, satoshiAmount int64) (outputTxHex string, err error)
*
- Add output for destroying the specified amount of the specified asset.
- param: handle cfd handle
- param: txHex transaction hex
- param: asset asset
- param: satoshiAmount amount by satoshi
- return: outputTxHex output transaction hex
- return: err error
func CfdGoAddMultisigSignData ¶
func CfdGoAddMultisigSignData(handle uintptr, multisigSignHandle uintptr, signature string, relatedPubkey string) (err error)
*
- Add multisig sign data.
- param: handle cfd handle
- param: multisigSignHandle multisig sign handle
- param: signature signature
- param: relatedPubkey signature related pubkey
- return: err error
func CfdGoAddMultisigSignDataToDer ¶
func CfdGoAddMultisigSignDataToDer(handle uintptr, multisigSignHandle uintptr, signature string, sighashType int, sighashAnyoneCanPay bool, relatedPubkey string) (err error)
*
- Convert to der encode, and add multisig sign data.
- param: handle cfd handle
- param: multisigSignHandle multisig sign handle
- param: signature signature
- param: sighashType sighash type
- param: sighashAnyoneCanPay sighash anyone can pay flag
- param: relatedPubkey signature related pubkey
- return: err error
func CfdGoCalculateEcSignature ¶
func CfdGoCalculateEcSignature(handle uintptr, sighash string, privkeyHex string, privkeyWif string, wifNetworkType int, hasGrindR bool) (signature string, err error)
*
- Calculate ec-signature from privkey.
- param: handle cfd handle
- param: sighash signatufe hash
- param: privkeyHex privkey hex (Specify either privkeyHex or privkeyWif)
- param: privkeyWif privkey WIF (Specify either privkeyHex or privkeyWif)
- param: wifNetworkType network type (for privkey WIF)
- param: hasGrindR grind-r flag
- return: signature signature
- return: err error
func CfdGoCloneHandle ¶
*
- Clone cfd handle.
- param: handle cfd source handle
- return: handle cfd handle. release: CfdGoFreeHandle
- return: err error struct
func CfdGoCoinSelection ¶
func CfdGoCoinSelection(handle uintptr, utxos []CfdUtxo, targetAmounts []CfdTargetAmount, option CfdCoinSelectionOption) (selectUtxos []CfdUtxo, totalAmounts []CfdTargetAmount, utxoFee int64, err error)
*
- Select coins.
- param: handle cfd handle
- param: utxos utxo array
- param: targetAmounts target amount array
- param: option option for coinSelection
- return: selectUtxos select coins
- return: totalAmounts select amount by asset
- return: utxoFee fee by utxo
- return: err error
func CfdGoConvertScriptAsmToHex ¶
*
- Convert script asm to hex.
- param: handle cfd handle.
- param: scriptAsm script assembly string.
- return: script hex encodeed script.
- return: err error
func CfdGoCopyAndFreeHandle ¶
*
- Copy and free cfd handle.
- param: parentHandle cfd parent handle
- param: handle cfd free handle
- return: err error struct
func CfdGoCreateAddress ¶
func CfdGoCreateAddress(handle uintptr, hashType int, pubkey string, redeemScript string, networkType int) (address string, lockingScript string, p2shSegwitLockingScript string, err error)
*
- Create Address.
- param: handle cfd handle
- param: hashType hash type (p2pkh, p2sh, etc...)
- param: pubkey pubkey (pubkey hash only)
- param: redeemScript redeem script (script hash only)
- param: networkType network type
- return: address address string
- return: lockingScript locking script
- return: p2shSegwitLockingScript p2sh-segwit witness program
- return: err error
func CfdGoCreateConfidentialAddress ¶
func CfdGoCreateConfidentialAddress(handle uintptr, address string, confidentialKey string) (confidentialAddress string, err error)
*
- Create confidential address.
- param: handle cfd handle
- param: address address
- param: confidentialKey confidential key
- return: confidentialAddress confidential address
- return: err error
func CfdGoCreateConfidentialSighash ¶
func CfdGoCreateConfidentialSighash(handle uintptr, txHex string, txid string, vout uint32, hashType int, pubkey string, redeemScript string, satoshiAmount int64, valueCommitment string, sighashType int, sighashAnyoneCanPay bool) (sighash string, err error)
*
- Create sighash from confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: hashType hash type
- param: pubkey pubkey (p2pkh, p2wpkh, p2sh-p2wpkh)
- param: redeemScript redeem script (p2Sh, p2wsh, p2sh-p2wsh)
- param: satoshiAmount amount by satoshi
- param: valueCommitment amount by commitment bytes.
- param: sighashType sighash type
- param: sighashAnyoneCanPay sighash anyone can pay flag
- return: outputTxHex output transaction hex
- return: err error
func CfdGoCreateExtPubkey ¶
func CfdGoCreateExtPubkey(handle uintptr, extkey string, networkType int) (extPubkey string, err error)
*
- Create extpubkey from extprivkey.
- param: handle cfd handle.
- param: extkey ext privkey.
- param: networkType network type.
- return: extPubkey ext pubkey.
- return: err error
func CfdGoCreateExtkeyFromParentPath ¶
func CfdGoCreateExtkeyFromParentPath(handle uintptr, extkey string, path string, networkType int, keyType int) (childExtkey string, err error)
*
- Create extkey from parent path.
- param: handle cfd handle.
- param: extkey parent extkey.
- param: path bip32 key path.(ex: 0/0h/0'/0)
- param: networkType network type.
- param: keyType extkey type.
- return: childExtkey child extkey.
- return: err error
func CfdGoCreateExtkeyFromSeed ¶
func CfdGoCreateExtkeyFromSeed(handle uintptr, seed string, networkType int, keyType int) (extkey string, err error)
*
- Create extkey from seed.
- param: handle cfd handle.
- param: seed seed data(hex).
- param: networkType network type.
- param: keyType extkey type.
- return: extkey extkey.
- return: err error
func CfdGoCreateHandle ¶
*
- Create cfd handle.
- return: handle cfd handle. release: CfdGoFreeHandle
- return: err error struct
func CfdGoCreateKeyPair ¶
func CfdGoCreateKeyPair(handle uintptr, isCompress bool, networkType int) (pubkey string, privkeyHex string, privkeyWif string, err error)
*
- Create key pair.
- param: handle cfd handle.
- param: isCompress pubkey compressed.
- param: networkType privkey wif network type.
- return: pubkey pubkey.
- return: privkeyHex privkey hex.
- return: privkeyWif privkey wif.
- return: err error
func CfdGoCreateMultisigScript ¶
func CfdGoCreateMultisigScript(handle uintptr, networkType int, hashType int, pubkeys []string, requireNum uint32) (address string, redeemScript string, witnessScript string, err error)
*
- Create multisig script and address.
- param: handle cfd handle
- param: networkType network type
- param: hashType hash type (p2sh, p2wsh, etc...)
- param: pubkeys pubkey list (max 15 key)
- param: requireNum pubkey require signature
- return: address address string
- return: redeemScript redeem script
- return: witnessScript witness script
- return: err error
func CfdGoCreateMultisigScriptSig ¶
func CfdGoCreateMultisigScriptSig(handle uintptr, signItems []CfdMultisigSignData, redeemScript string) (scriptsig string, err error)
*
- Create multisig scriptsig.
- param: handle cfd handle.
- param: signItems array of multisig sign data struct.
- param: redeemScript hex encoded multisig script.
- return: scriptsig hex encoded script.
- return: err error
func CfdGoCreateScript ¶
*
- Create script from script items.
- param: handle cfd handle.
- param: scriptItems array of script element string.
- return: script hex encoded script.
- return: err error
func CfdGoEncodeSignatureByDer ¶
func CfdGoEncodeSignatureByDer(handle uintptr, signature string, sighashType int, sighash_anyone_can_pay bool) (derSignature string, err error)
*
- Encode ec signature by der encoding.
- param: handle cfd handle.
- param: signature compact format signature.
- param: sighashType sighash type.
- param: sighash_anyone_can_pay flag of signing only the current input.
- return: derSignature signature encoded by der encodeing.
- return: err error
func CfdGoEstimateFee ¶
func CfdGoEstimateFee(handle uintptr, txHex string, inputs []CfdEstimateFeeInput, option CfdEstimateFeeOption) (totalFee, txFee, inputFee int64, err error)
*
- Estimate fee amount.
- param: handle cfd handle
- param: txHex transaction hex
- param: inputs inputs to set in the transaction
- param: option options for fee estimation
- return: totalFee total fee value when all utxos set to input.
- (totalFee = txFee + utxoFee)
- return: txFee base transaction fee value.
- return: inputFee fee value all of input set.
func CfdGoFinalizeBlindTx ¶
func CfdGoFinalizeBlindTx(handle uintptr, blindHandle uintptr, txHex string) (outputTxHex string, err error)
*
- Generate blind transaction.
- param: handle cfd handle
- param: blindHandle blindTx handle
- param: txHex transaction hex
- return: outputTxHex output transaction hex
- return: err error
func CfdGoFinalizeElementsMultisigSign ¶
func CfdGoFinalizeElementsMultisigSign(handle uintptr, multiSignHandle uintptr, txHex string, txid string, vout uint32, hashType int, witnessScript string, redeemScript string, clearStack bool) (outputTxHex string, err error)
*
- Add multisig sign data to confidential transaction.
- param: handle cfd handle
- param: multiSignHandle multisig sign handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: hashType hash type
- param: witnessScript witness script (p2wsh, p2sh-p2wsh)
- param: redeemScript redeem script (p2sh, p2sh-p2wsh)
- param: clearStack cleanup stack
- return: outputTxHex output transaction hex
- return: err error
func CfdGoFreeBlindHandle ¶
*
- Free blind handle.
- param: handle cfd handle
- param: blindHandle blindTx handle
- return: err error
func CfdGoFreeMultisigSignHandle ¶
*
- Free multisig sign handle.
- param: handle cfd handle
- param: multisigSignHandle multisig sign handle
- return: err error
func CfdGoGetAddressFromLockingScript ¶
func CfdGoGetAddressFromLockingScript(handle uintptr, lockingScript string, networkType int) (address string, err error)
*
- Get address from locking script.
- param: handle cfd handle
- param: lockingScript locking script
- param: networkType network type
- param: hashType hash type (p2sh, p2wsh, etc...)
- return: address address
- return: err error
func CfdGoGetAddressesFromMultisig ¶
func CfdGoGetAddressesFromMultisig(handle uintptr, redeemScript string, networkType int, hashType int) (addressList []string, pubkeyList []string, err error)
*
- Get multisig pubkeys address.
- param: handle cfd handle
- param: redeemScript multisig script
- param: networkType network type
- param: hashType hash type (p2sh, p2wsh, etc...)
- return: addressList address list
- return: pubkeyList pubkey list
- return: err error
func CfdGoGetConfidentialTxIn ¶
func CfdGoGetConfidentialTxIn(handle uintptr, txHex string, index uint32) (txid string, vout uint32, sequence uint32, scriptSig string, err error)
*
- Get txin on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txin index
- return: txid txid
- return: vout vout
- return: sequence sequence
- return: scriptSig unlockingScript
- return: err error
func CfdGoGetConfidentialTxInCount ¶
*
- Get txin count on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- return: count txin count
- return: err error
func CfdGoGetConfidentialTxInWitness ¶
func CfdGoGetConfidentialTxInWitness(handle uintptr, txHex string, txinIndex uint32, stackIndex uint32) (stackData string, err error)
*
- Get witness stack on confidential transaction input.
- param: handle cfd handle
- param: txHex transaction hex
- param: txinIndex txin index
- param: stackIndex witness stack index
- return: stackData witness stack data
- return: err error
func CfdGoGetConfidentialTxInWitnessCount ¶
func CfdGoGetConfidentialTxInWitnessCount(handle uintptr, txHex string, txinIndex uint32) (count uint32, err error)
*
- Get witness stack count on confidential transaction input.
- param: handle cfd handle
- param: txHex transaction hex
- param: txinIndex txin index
- return: count witness stack count
- return: err error
func CfdGoGetConfidentialTxOut ¶
func CfdGoGetConfidentialTxOut(handle uintptr, txHex string, index uint32) (asset string, satoshiAmount int64, valueCommitment string, nonce string, lockingScript string, surjectionProof string, rangeproof string, err error)
*
- Get txout on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txin index
- return: asset asset
- return: satoshiAmount amount by satoshi
- return: valueCommitment amount by commitment bytes.
- return: nonce confidential nonce
- return: lockingScript locking script
- return: surjectionProof asset surjection proof.
- return: rangeproof amount rangeproof.
- return: err error
func CfdGoGetConfidentialTxOutCount ¶
*
- Get txout count on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- return: count txout count
- return: err error
func CfdGoGetDescriptorChecksum ¶
func CfdGoGetDescriptorChecksum(handle uintptr, networkType int, descriptor string) (descriptorAddedChecksum string, err error)
*
- Get outputDescriptor's checksum.
- param: handle cfd handle
- param: networkType network type
- param: descriptor descriptor.
- return: descriptorAddedChecksum descriptor added checksum.
- return: err error
func CfdGoGetIssuanceBlindingKey ¶
func CfdGoGetIssuanceBlindingKey(handle uintptr, masterBlindingKey string, txid string, vout uint32) (blindingKey string, err error)
*
- Get issuance blinding key.
- param: handle cfd handle
- param: masterBlindingKey master blinding key
- param: txid utxo txid
- param: vout utxo vout
- return: blindingKey issuance blinding key
- return: err error
func CfdGoGetLastErrorMessage ¶
*
- Get last error message.
- param: handle cfd handle
- return: message last error message
- return: err error
func CfdGoGetParentExtkeyPathData ¶
func CfdGoGetParentExtkeyPathData( handle uintptr, parentExtkey, path string, childExtkeyType int) (keyPathData, childExtkey string, err error)
*
- Get parent key path data.
- param: handle handle pointer.
- param: parentExtkey parent ext key string.
- param: path child path.
- param: childExtkeyType child key type. (see CfdDescriptorKeyType)
- return: keyPathData key path data.
- return: childExtkey child ext key string.
- return: err error
func CfdGoGetPrivkeyFromExtkey ¶
func CfdGoGetPrivkeyFromExtkey(handle uintptr, extkey string, networkType int) (privkeyHex string, privkeyWif string, err error)
*
- Get privkey from extprivkey.
- param: handle cfd handle.
- param: extkey ext privkey.
- param: networkType network type.
- return: privkeyHex privkey hex.
- return: privkeyWif privkey wif.
- return: err error
func CfdGoGetPrivkeyFromWif ¶
func CfdGoGetPrivkeyFromWif(handle uintptr, privkeyWif string, networkType int) (privkeyHex string, err error)
*
- Get privkey from WIF.
- param: handle cfd handle.
- param: privkeyWif privkey wif.
- param: networkType privkey wif network type.
- return: privkeyHex privkey hex.
- return: err error
func CfdGoGetPrivkeyWif ¶
func CfdGoGetPrivkeyWif(handle uintptr, privkeyHex string, networkType int, isCompress bool) (privkeyWif string, err error)
*
- Get privkey WIF from hex.
- param: handle cfd handle.
- param: privkeyHex privkey hex.
- param: networkType privkey wif network type.
- param: isCompress pubkey compressed.
- return: privkeyWif privkey wif.
- return: err error
func CfdGoGetPubkeyFromExtkey ¶
func CfdGoGetPubkeyFromExtkey(handle uintptr, extkey string, networkType int) (pubkey string, err error)
*
- Get pubkey from extkey.
- param: handle cfd handle.
- param: extkey extkey.
- param: networkType network type.
- return: pubkey pubkey.
- return: err error
func CfdGoGetPubkeyFromPrivkey ¶
func CfdGoGetPubkeyFromPrivkey(handle uintptr, privkeyHex string, privkeyWif string, isCompress bool) (pubkey string, err error)
*
- Get pubkey from privkey.
- param: handle cfd handle.
- param: privkeyHex privkey hex. (or privkeyWif)
- param: privkeyWif privkey wif. (or privkeyHex)
- param: isCompress pubkey compressed.
- return: pubkey pubkey hex.
- return: err error
func CfdGoGetSupportedFunction ¶
*
- Get supported function.
- return: funcFlag function flag.
- return: err error struct
func CfdGoGetTxInIssuanceInfo ¶
func CfdGoGetTxInIssuanceInfo(handle uintptr, txHex string, index uint32) (entropy string, nonce string, assetAmount int64, assetValue string, tokenAmount int64, tokenValue string, assetRangeproof string, tokenRangeproof string, err error)
*
- Get txin issuance on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txin index
- return: entropy blinding asset entropy
- return: nonce blinding nonce
- return: assetAmount asset amount value
- return: assetValue asset commitment value
- return: tokenAmount token amount value
- return: tokenValue token commitment value
- return: assetRangeproof asset rangeproof
- return: tokenRangeproof token rangeproof
- return: err error
func CfdGoInitializeBlindTx ¶
*
- Get blind transaction handle.
- param: handle cfd handle
- return: blindHandle blindTx handle. release: CfdGoFreeBlindHandle
- return: err error
func CfdGoInitializeConfidentialTx ¶
func CfdGoInitializeConfidentialTx(handle uintptr, version uint32, locktime uint32) (txHex string, err error)
*
- Get initialized confidential transaction.
- param: handle cfd handle
- param: version transaction version
- param: locktime locktime
- return: txHex transaction hex
- return: err error
func CfdGoInitializeMultisigSign ¶
*
- Generate multisig sign handle.
- param: handle cfd handle
- return: multisigSignHandle multisig sign handle. release: CfdGoFreeMultisigSignHandle
- return: err error
func CfdGoNormalizeSignature ¶
func CfdGoNormalizeSignature(handle uintptr, signature string) (normalizedSignature string, err error)
*
- Normalize ec signature to low-s form
- param: handle cfd handle
- param: signature ec signature to nomalize
- return: normalizeSignature normalized signature
- return: err error
func CfdGoParseConfidentialAddress ¶
func CfdGoParseConfidentialAddress(handle uintptr, confidentialAddress string) (address string, confidentialKey string, networkType int, err error)
*
- Get address and confidentialKey from confidentialAddress.
- param: handle cfd handle
- param: confidentialAddress confidential address
- return: address address
- return: confidentialKey confidential key
- return: networkType network type
- return: err error
func CfdGoParseDescriptor ¶
func CfdGoParseDescriptor(handle uintptr, descriptor string, networkType int, bip32DerivationPath string) (descriptorDataList []CfdDescriptorData, multisigList []CfdDescriptorKeyData, err error)
*
- Parse Output Descriptor.
- param: handle cfd handle
- param: descriptor output descriptor
- param: networkType network type
- param: bip32DerivationPath derive path
- return: descriptorDataList descriptor data struct list
- return: multisigList multisig key struct list
- return: err error
func CfdGoParsePrivkeyWif ¶
func CfdGoParsePrivkeyWif(handle uintptr, privkeyWif string) (privkeyHex string, networkType int, isCompress bool, err error)
*
- Parse privkey WIF data.
- param: handle cfd handle.
- param: privkeyWif privkey wif.
- return: privkeyHex privkey hex.
- return: networkType privkey wif network type.
- return: isCompress pubkey compressed.
- return: err error
func CfdGoParseScript ¶
*
- Parse script items from script.
- param: handle cfd handle.
- param: script script.
- return: scriptItems script items.
- return: err error
func CfdGoSetElementsMultisigScriptSig ¶
func CfdGoSetElementsMultisigScriptSig(handle uintptr, txHex string, txid string, vout uint32, scriptsig string, hashType int) (outputTxHex string, err error)
*
- Set multisig scriptsig to locking script.
- param: handle cfd handle.
- param: txHex transaction hex
- param: txid txid
- param: vout vout
- param: scriptsig hex encoded script.
- param: hashType hash type (p2pkh, p2sh, etc...)
- return: outputTxHex output transaction hex
- return: err error
func CfdGoSetRawReissueAsset ¶
func CfdGoSetRawReissueAsset(handle uintptr, txHex string, txid string, vout uint32, assetSatoshiAmount int64, blindingNonce string, entropy string, address string, directLockingScript string) (asset string, outputTxHex string, err error)
*
- Set reissuance asset to confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: txid txin txid
- param: vout txin vout
- param: assetSatoshiAmount generate asset amount
- param: blindingNonce blinding nonce
- param: entropy entropy
- param: address destination address
- param: directLockingScript txout locking script on direct.
- return: asset generate asset
- return: outputTxHex output transaction hex
- return: err error
func CfdGoUnblindIssuance ¶
func CfdGoUnblindIssuance(handle uintptr, txHex string, index uint32, assetBlindingKey string, tokenBlindingKey string) (asset string, assetAmount int64, assetBlindFactor string, assetValueBlindFactor string, token string, tokenAmount int64, tokenBlindFactor string, tokenValueBlindFactor string, err error)
*
- Unblind txin issuance on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txin index
- param: assetBlindingKey asset blinding key
- param: tokenBlindingKey token blinding key
- return: asset asset
- return: assetAmount asset amount
- return: assetBlindFactor issueAsset asset blind factor
- return: assetValueBlindFactor issueAsset value blind factor
- return: token token
- return: tokenAmount token amount
- return: tokenBlindFactor issueToken asset blind factor
- return: tokenValueBlindFactor issueToken value blind factor
- return: err error
func CfdGoUnblindTxOut ¶
func CfdGoUnblindTxOut(handle uintptr, txHex string, index uint32, blindingKey string) (asset string, satoshiAmount int64, assetBlindFactor string, valueBlindFactor string, err error)
*
- Unblind txout on confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txout index
- param: blindingKey blinding key
- return: asset asset
- return: satoshiAmount satoshi amount
- return: assetBlindFactor asset blind factor
- return: valueBlindFactor amount blind factor
- return: err error
func CfdGoUpdateConfidentialTxOut ¶
func CfdGoUpdateConfidentialTxOut(handle uintptr, txHex string, index uint32, asset string, satoshiAmount int64, valueCommitment string, address string, directLockingScript string, nonce string) (outputTxHex string, err error)
*
- Update txout of confidential transaction.
- param: handle cfd handle
- param: txHex transaction hex
- param: index txout index
- param: asset asset
- param: satoshiAmount amount by satoshi
- param: valueCommitment amount by commitment bytes.
- param: address destination address
- param: directLockingScript lockingScript for direct insert.
- param: nonce confidential nonce
- return: outputTxHex output transaction hex
- return: err error
func CfdGoVerifyConfidentialTxSignature ¶
func CfdGoVerifyConfidentialTxSignature( handle uintptr, txHex, signature, pubkey, script, txid string, vout uint32, sighashType int, sighashAnyoneCanPay bool, satoshiAmount int64, valueCommitment string, witnessVersion int) (result bool, err error)
*
- Verify signature in transaction input.
- param: handle cfd handle.
- param: txHex transaction hex.
- param: signature signature for input.
- param: pubkey pubkey hex.
- param: script script hex.
- param: txid input txid.
- param: vout input vout.
- param: sighashType sighash type.
- param: sighashAnyoneCanPay sighash anyone can pay flag.
- param: satoshiAmount input satoshi amount.
- (used only for witness input.)
- param: valueCommitment input value commitment.
- (used only for witness input.)
- param: witnessVersion witness version.
- (used only for witness input. If not witness input used, set KCfdWitnessVersionNone or "-1".)
- return: result result of verification signature
- return: err error
func CfdGoVerifyConfidentialTxSignatureByIndex ¶
func CfdGoVerifyConfidentialTxSignatureByIndex( handle uintptr, txHex, signature, pubkey, script string, index uint32, sighashType int, sighashAnyoneCanPay bool, satoshiAmount int64, valueCommitment string, witnessVersion int) (result bool, err error)
*
- Verify signature in transaction input by index.
- (prototype interface)
- param: handle cfd handle.
- param: txHex transaction hex.
- param: signature signature for input.
- param: pubkey pubkey hex.
- param: script script hex.
- param: index index of input for verification.
- param: sighashType sighash type.
- param: sighashAnyoneCanPay sighash anyone can pay flag.
- param: satoshiAmount input satoshi amount.
- (used only for witness input.)
- param: valueCommitment input value commitment.
- (used only for witness input.)
- param: witnessVersion witness version.
- (used only for witness input. If not used, set KCfdWitnessVersionNone or "-1".)
- return: result result of verification signature
- return: err error
func CfdInitialize ¶
func CfdInitialize() (_swig_ret int)
func CfdInitializeBlindTx ¶
func CfdNormalizeSignature ¶
func CfdParseDescriptor ¶
func CfdParsePrivkeyWif ¶
func CfdParseScript ¶
func CfdSetRawReissueAsset ¶
func CfdUnblindIssuance ¶
func CfdUnblindTxOut ¶
func Swig_malloc ¶
Types ¶
type CfdAddressInfo ¶
type CfdAddressInfo struct { // address Address string // network type NetworkType int // hash type HashType int // witness version (unuse: -1) WitnessVersion int // locking script LockingScript string // hash Hash string }
*
- Address information struct.
func CfdGoGetAddressInfo ¶
func CfdGoGetAddressInfo(handle uintptr, address string) (data CfdAddressInfo, err error)
*
- Get address information.
- param: handle cfd handle
- param: address address string
- return: data address data (CfdAddressInfo)
- return: err error
type CfdAddressType ¶
type CfdAddressType int
var KCfdP2pkhAddress CfdAddressType = _swig_getkCfdP2pkhAddress()
var KCfdP2shAddress CfdAddressType = _swig_getkCfdP2shAddress()
var KCfdP2shP2wpkhAddress CfdAddressType = _swig_getkCfdP2shP2wpkhAddress()
var KCfdP2shP2wshAddress CfdAddressType = _swig_getkCfdP2shP2wshAddress()
var KCfdP2wpkhAddress CfdAddressType = _swig_getkCfdP2wpkhAddress()
var KCfdP2wshAddress CfdAddressType = _swig_getkCfdP2wshAddress()
type CfdCoinSelectionOption ¶
type CfdCoinSelectionOption struct { // fee asset FeeAsset string // tx-fee amount TxFeeAmount int64 // effective feerate EffectiveFeeRate float64 // longterm feerate LongTermFeeRate float64 // dust feerate DustFeeRate float64 // knapsack min change value KnapsackMinChange int64 }
*
- CoinSelection option data struct.
func NewCfdCoinSelectionOption ¶
func NewCfdCoinSelectionOption() CfdCoinSelectionOption
*
- Create CfdCoinSelectionOption struct set default value.
- return: option CoinSelection option
type CfdDescriptorData ¶
type CfdDescriptorData struct { // depth (0 - ) Depth uint32 // script type. (CfdDescriptorScriptType) ScriptType int // locking script. LockingScript string // address string. (for ScriptType not KCfdDescriptorScriptRaw) Address string // hash type. (CfdHashType) HashType int // redeem script. (for ScriptType KCfdDescriptorScriptSh or KCfdDescriptorScriptWsh) RedeemScript string // key type. (see CfdDescriptorKeyData.KeyType) KeyType int // pubkey Pubkey string // extend pubkey ExtPubkey string // extend privkey ExtPrivkey string // has multisig IsMultisig bool // number of multisig require signatures ReqSigNum uint32 }
*
- Descriptor data struct.
type CfdDescriptorKeyData ¶
type CfdDescriptorKeyData struct { // key type. (CfdDescriptorKeyType) // - KCfdDescriptorKeyNull // - KCfdDescriptorKeyPublic // - KCfdDescriptorKeyBip32 // - KCfdDescriptorKeyBip32Priv KeyType int // pubkey Pubkey string // extend pubkey ExtPubkey string // extend privkey ExtPrivkey string }
*
- Descriptor key data struct.
type CfdDescriptorKeyType ¶
type CfdDescriptorKeyType int
var KCfdDescriptorKeyBip32 CfdDescriptorKeyType = _swig_getkCfdDescriptorKeyBip32()
var KCfdDescriptorKeyBip32Priv CfdDescriptorKeyType = _swig_getkCfdDescriptorKeyBip32Priv()
var KCfdDescriptorKeyNull CfdDescriptorKeyType = _swig_getkCfdDescriptorKeyNull()
var KCfdDescriptorKeyPublic CfdDescriptorKeyType = _swig_getkCfdDescriptorKeyPublic()
type CfdDescriptorScriptType ¶
type CfdDescriptorScriptType int
var KCfdDescriptorScriptAddr CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptAddr()
var KCfdDescriptorScriptCombo CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptCombo()
var KCfdDescriptorScriptMulti CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptMulti()
var KCfdDescriptorScriptNull CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptNull()
var KCfdDescriptorScriptPk CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptPk()
var KCfdDescriptorScriptPkh CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptPkh()
var KCfdDescriptorScriptRaw CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptRaw()
var KCfdDescriptorScriptSh CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptSh()
var KCfdDescriptorScriptSortedMulti CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptSortedMulti()
var KCfdDescriptorScriptWpkh CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptWpkh()
var KCfdDescriptorScriptWsh CfdDescriptorScriptType = _swig_getkCfdDescriptorScriptWsh()
type CfdErrorCode ¶
type CfdErrorCode int
var KCfdConnectionError CfdErrorCode = _swig_getkCfdConnectionError()
var KCfdDiskAccessError CfdErrorCode = _swig_getkCfdDiskAccessError()
var KCfdIllegalArgumentError CfdErrorCode = _swig_getkCfdIllegalArgumentError()
var KCfdIllegalStateError CfdErrorCode = _swig_getkCfdIllegalStateError()
var KCfdInternalError CfdErrorCode = _swig_getkCfdInternalError()
var KCfdInvalidSettingError CfdErrorCode = _swig_getkCfdInvalidSettingError()
var KCfdMemoryFullError CfdErrorCode = _swig_getkCfdMemoryFullError()
var KCfdOutOfRangeError CfdErrorCode = _swig_getkCfdOutOfRangeError()
var KCfdSignVerificationError CfdErrorCode = _swig_getkCfdSignVerificationError()
var KCfdSuccess CfdErrorCode = _swig_getkCfdSuccess()
var KCfdUnknownError CfdErrorCode = _swig_getkCfdUnknownError()
type CfdEstimateFeeInput ¶
type CfdEstimateFeeInput struct { // utxo data Utxo CfdUtxo // is issuance input IsIssuance bool // is blind issuance input IsBlindIssuance bool // is peg-in input IsPegin bool // peg-in bitcoin tx size (require when IsPegin is true) PeginBtcTxSize uint32 // fedpegscript hex (require when IsPegin is true) FedpegScript string }
*
- EstimateFee Input data struct.
type CfdEstimateFeeOption ¶
type CfdEstimateFeeOption struct { // effective feerate EffectiveFeeRate float64 // use elements chain UseElements bool // fee asset FeeAsset string // Require blinding or not RequireBlind bool }
*
- EstimateFee option data struct.
func NewCfdEstimateFeeOption ¶
func NewCfdEstimateFeeOption() CfdEstimateFeeOption
*
- Create CfdEstimateFeeOption struct set default value.
- return: option EstimateFeeOption
type CfdExtKeyType ¶
type CfdExtKeyType int
var KCfdExtPrivkey CfdExtKeyType = _swig_getkCfdExtPrivkey()
var KCfdExtPubkey CfdExtKeyType = _swig_getkCfdExtPubkey()
type CfdExtkeyData ¶
type CfdExtkeyData struct { // version Version string // parent fingerprint Fingerprint string // chain code ChainCode string // depth Depth uint32 // child number ChildNumber uint32 }
*
- Extkey data struct.
func CfdGoGetExtkeyInformation ¶
func CfdGoGetExtkeyInformation( handle uintptr, extkey string) (extkeyData CfdExtkeyData, err error)
*
- Get extkey information.
- param: handle handle pointer.
- param: extkey ext key string.
- return: extkeyData CfdExtkeyData
- return: err error
type CfdHashType ¶
type CfdHashType int
var KCfdP2pkh CfdHashType = _swig_getkCfdP2pkh()
var KCfdP2sh CfdHashType = _swig_getkCfdP2sh()
var KCfdP2shP2wpkh CfdHashType = _swig_getkCfdP2shP2wpkh()
var KCfdP2shP2wsh CfdHashType = _swig_getkCfdP2shP2wsh()
var KCfdP2wpkh CfdHashType = _swig_getkCfdP2wpkh()
var KCfdP2wsh CfdHashType = _swig_getkCfdP2wsh()
type CfdLibraryFunction ¶
type CfdLibraryFunction int
var KCfdEnableBitcoin CfdLibraryFunction = _swig_getkCfdEnableBitcoin()
var KCfdEnableElements CfdLibraryFunction = _swig_getkCfdEnableElements()
type CfdMultisigSignData ¶
type CfdMultisigSignData struct { // signature Signature string // use der encode IsDerEncode bool // sighash type. (CfdSighashType) SighashType int // sighash anyone can pay. SighashAnyoneCanPay bool // related pubkey. RelatedPubkey string }
*
- Multisig sign data struct.
type CfdNetworkType ¶
type CfdNetworkType int
var KCfdNetworkCustomChain CfdNetworkType = _swig_getkCfdNetworkCustomChain()
var KCfdNetworkElementsRegtest CfdNetworkType = _swig_getkCfdNetworkElementsRegtest()
var KCfdNetworkLiquidv1 CfdNetworkType = _swig_getkCfdNetworkLiquidv1()
var KCfdNetworkMainnet CfdNetworkType = _swig_getkCfdNetworkMainnet()
var KCfdNetworkRegtest CfdNetworkType = _swig_getkCfdNetworkRegtest()
var KCfdNetworkTestnet CfdNetworkType = _swig_getkCfdNetworkTestnet()
type CfdSequenceLockTime ¶
type CfdSequenceLockTime int
var KCfdSequenceLockTimeDisable CfdSequenceLockTime = _swig_getkCfdSequenceLockTimeDisable()
var KCfdSequenceLockTimeEnableMax CfdSequenceLockTime = _swig_getkCfdSequenceLockTimeEnableMax()
type CfdSighashType ¶
type CfdSighashType int
var KCfdSigHashAll CfdSighashType = _swig_getkCfdSigHashAll()
var KCfdSigHashNone CfdSighashType = _swig_getkCfdSigHashNone()
var KCfdSigHashSingle CfdSighashType = _swig_getkCfdSigHashSingle()
type CfdTxData ¶
type CfdTxData struct { // txid Txid string // witness txid Wtxid string // witness hash WitHash string // size Size uint32 // virtual size Vsize uint32 // weight Weight uint32 // version Version uint32 // locktime LockTime uint32 }
*
- TxData data struct.
type CfdUtxo ¶
type CfdUtxo struct { // utxo txid Txid string // utxo vout Vout uint32 // amount Amount int64 // asset Asset string // output descriptor Descriptor string // is issuance output IsIssuance bool // is blind issuance output IsBlindIssuance bool // is peg-in output IsPegin bool // peg-in bitcoin tx size (require when IsPegin is true) PeginBtcTxSize uint32 // fedpegscript hex (require when IsPegin is true) FedpegScript string }
*
- UTXO struct.
type CfdWitnessVersion ¶
type CfdWitnessVersion int
var KCfdWitnessVersion0 CfdWitnessVersion = _swig_getkCfdWitnessVersion0()
var KCfdWitnessVersion1 CfdWitnessVersion = _swig_getkCfdWitnessVersion1()
var KCfdWitnessVersion10 CfdWitnessVersion = _swig_getkCfdWitnessVersion10()
var KCfdWitnessVersion11 CfdWitnessVersion = _swig_getkCfdWitnessVersion11()
var KCfdWitnessVersion12 CfdWitnessVersion = _swig_getkCfdWitnessVersion12()
var KCfdWitnessVersion13 CfdWitnessVersion = _swig_getkCfdWitnessVersion13()
var KCfdWitnessVersion14 CfdWitnessVersion = _swig_getkCfdWitnessVersion14()
var KCfdWitnessVersion15 CfdWitnessVersion = _swig_getkCfdWitnessVersion15()
var KCfdWitnessVersion16 CfdWitnessVersion = _swig_getkCfdWitnessVersion16()
var KCfdWitnessVersion2 CfdWitnessVersion = _swig_getkCfdWitnessVersion2()
var KCfdWitnessVersion3 CfdWitnessVersion = _swig_getkCfdWitnessVersion3()
var KCfdWitnessVersion4 CfdWitnessVersion = _swig_getkCfdWitnessVersion4()
var KCfdWitnessVersion5 CfdWitnessVersion = _swig_getkCfdWitnessVersion5()
var KCfdWitnessVersion6 CfdWitnessVersion = _swig_getkCfdWitnessVersion6()
var KCfdWitnessVersion7 CfdWitnessVersion = _swig_getkCfdWitnessVersion7()
var KCfdWitnessVersion8 CfdWitnessVersion = _swig_getkCfdWitnessVersion8()
var KCfdWitnessVersion9 CfdWitnessVersion = _swig_getkCfdWitnessVersion9()
var KCfdWitnessVersionNone CfdWitnessVersion = _swig_getkCfdWitnessVersionNone()
type SwigcptrInt32_t ¶
type SwigcptrInt32_t uintptr
func (SwigcptrInt32_t) Swigcptr ¶
func (p SwigcptrInt32_t) Swigcptr() uintptr
type SwigcptrInt64_t ¶
type SwigcptrInt64_t uintptr
func (SwigcptrInt64_t) Swigcptr ¶
func (p SwigcptrInt64_t) Swigcptr() uintptr
type SwigcptrUint32_t ¶
type SwigcptrUint32_t uintptr
func (SwigcptrUint32_t) Swigcptr ¶
func (p SwigcptrUint32_t) Swigcptr() uintptr
type SwigcptrUint64_t ¶
type SwigcptrUint64_t uintptr
func (SwigcptrUint64_t) Swigcptr ¶
func (p SwigcptrUint64_t) Swigcptr() uintptr
Click to show internal directories.
Click to hide internal directories.