Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + const AccountKeySpace + const AssetKeySpace + const BIP0032 + const BIP0044 + var BIP44Purpose = []byte + var BTMCoinType = []byte + var ErrBadQuorum = errors.New(...) + var ErrBadXPub = errors.New("invalid xpub format") + var ErrDeriveRule = errors.New("invalid key derive rule") + var ErrDupeXPub = errors.New("xpubs cannot contain the same key more than once") + var ErrNoXPubs = errors.New("at least one xpub is required") + func GetBip0032Path(s *Signer, ks keySpace, itemIndexes ...uint64) [][]byte + func IDGenerate() string + func Path(s *Signer, ks keySpace, change bool, addrIndex uint64) ([][]byte, error) + type Signer struct + DeriveRule uint8 + KeyIndex uint64 + Quorum int + Type string + XPubs []chainkd.XPub + func Create(signerType string, xpubs []chainkd.XPub, quorum int, keyIndex uint64, ...) (*Signer, error) + type SortKeys []chainkd.XPub + func (s SortKeys) Len() int + func (s SortKeys) Less(i, j int) bool + func (s SortKeys) Swap(i, j int)