Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2020 Changes in this version + var AtomicSwapService atomicSwapManager + var ChannelService = channelManager + var CommitmentTxService commitmentTxManager + var CommitmentTxSignedService commitmentTxSignedManager + var FundingTransactionService fundingTransactionManager + var HDWalletService hdWalletManager + var HtlcBackwardTxService htlcBackwardTxManager + var HtlcCloseTxService htlcCloseTxManager + var HtlcForwardTxService htlcForwardTxManager + var HtlcHMessageService htlcHMessageManager + var HtlcQueryService = htlcQueryManager + var HttpService httpService + var MessageService messageManage + var OnlineUserMap = make(map[string]bool) + var P2PLocalPeerId string + var PathService = pathManager + var ScheduleService = scheduleManager + var UserService = UserManager + func CreateCustomMuiltAddress() + func CreateCustomP2SHSpendTx() + func CreateCustomP2SHTx() + func CreateCustomSpendTx() + func CreateCustomSpendTxForScriptHash() + func CreateCustomTx() + func CreateMuiltAddress() + func CreateP2PKHSpendTx() + func CreateP2PKHTx() + func CreateP2SHSpendTx() + func CreateP2SHTx() + func DeriveRevocationPubkey(revokeBase, commitPoint *btcec.PublicKey) *btcec.PublicKey + func FindUserIsOnline(peerId string) error + func GenMultiSigScript(aPub, bPub []byte) ([]byte, error) + func GenerateBTC() (string, string, error) + func GenerateBTCTest() (string, string, error) + func GetChannelInfoByTwoPeerID(peerIdA string, peerIdB string) (channelInfo *dao.ChannelInfo, err error) + func GetHtlcFee() float64 + func Ripemd160H(d []byte) []byte + func SenderHTLCScript(senderHtlcKey, receiverHtlcKey, revocationKey *btcec.PublicKey, ...) ([]byte, error) + func SingleTweakBytes(commitPoint, basePoint *btcec.PublicKey) []byte + func WitnessScriptHash(witnessScript []byte) ([]byte, error) + type Message struct + CreateAt time.Time + CurrState dao.NormalState + Data string + HashValue string + Id int + ReadAt time.Time + Receiver string + Sender string + type Node struct + Date time.Time + ID int + Name string + type NodeService struct + func (service *NodeService) Get(id interface{}) (data Node, err error) + func (service *NodeService) Save(node *Node) error + type PathBranchInfo struct + Amount float64 + Channel *dao.ChannelInfo + Peer2Peer string + type PathNode struct + ChannelId int + CurrNodePeerId string + IsRoot bool + IsTarget bool + Level uint16 + ParentNode int + PathIdArr []int + PathNames string + type RequestGetInfoByChannelId struct + ChannelId string + type Transaction struct + Amount int64 + DestinationAddress string + SignedTx string + SourceAddress string + TxId string + UnsignedTx string + func CreateTransaction(secret string, destination string, amount int64, txHash string) (Transaction, error) + type TreeNode struct + type UserManager struct + func (service *UserManager) UserInfo(email string) (user *dao.User, e error) + func (service *UserManager) UserLogin(user *bean.User) error + func (service *UserManager) UserLogout(user *bean.User) error + func (service *UserManager) UserSignUp(user *bean.User) error + type Wallet struct + Address string + Index int + PubKey string + Wif string