package
0.10.0-beta.2020101302
Repository: https://github.com/dabankio/wallet-core.git
Documentation: pkg.go.dev

# Functions

Hello 返回简单的hello 字符串,可用于验证api调用.
InternalNewBTCTransaction 内部用,构造btc transaction.
NewBip44Deriver btc bip44 实现.
NewBTCAddressFromString converts a string to a address value.
NewBTCAmount 数量in BTC (not in satoshi).
NewBTCTransaction creates a new bitcoin transaction with the given properties.
NewCoin btc impl of core.Coin.
NewFromMetadata .
NewMultiSigAddress 工具函数,生成BTC多签地址 Params: chainID: 0主链,1测试链,2Regression链 cmd.NRequired 需要签名的人数 cmd.Keys hex编码的公钥 限制:len(cmd.Keys) >= cmd.NRequired Return: 多签地址,redeemScript.
SignRawTransactionWithKey Refer to https://bitcoin.org/en/developer-reference#signrawtransactionwithkey Diff from rpc: sighashtype is set to "ALL" single private key.
SignTransaction signs tx with wif privateKey tx: transaction privateKeyWif: private key in wallet import format(wif) chainFlag: chain id return: { changed: (bool, 签名后的内容是否发生变化,), complete: (bool, 含不同地址的输入或多重签名情况下即使提供正确的私钥也可能存在签名未完成的情况), hex: (string, 前后的rawTransactionHex) errors: (string 可作为调试参考的错误信息) }.

# Constants

ChainMainNet 链:MainNet.
ChainRegtest 链:Regression.
ChainTestNet3 链:TestNet3.

# Variables

No description provided by the author

# Structs

Btc (全部大写在导出到java那边有点问题).
BTCAddress .
BTCAmount 对float64 的封装.
BTCOutputAmount 交易输出.
BTCTransaction represents a single bitcoin transaction.
BTCUnspent represents a single bitcoin transaction.
SignRawTransactionResult 签名结果.