Documentation ¶
Index ¶
- func AccPubKeysFromPartyIDs(partyIDs []string, partyIDMap map[string]*btss.PartyID) ([]string, error)
- func BytesToHashString(msg []byte) (string, error)
- func CheckKeyOnCurve(pk string) (bool, error)
- func GetParties(keys []string, localPartyKey string) ([]*btss.PartyID, *btss.PartyID, error)
- func GetPeerIDFromPartyID(partyID *btss.PartyID) (peer.ID, error)
- func GetPeerIDFromPubKey(pubkey string) (peer.ID, error)
- func GetPeerIDFromSecp256PubKey(pk []byte) (peer.ID, error)
- func GetPeerIDs(pubkeys []string) ([]peer.ID, error)
- func GetPeerIDsFromPubKeys(pubkeys []string) ([]peer.ID, error)
- func GetPeersID(partyIDtoP2PID map[string]peer.ID, localPeerID string) []peer.ID
- func GetPreviousKeySignUicast(current string) string
- func GetPriKey(priKeyString string) (tcrypto.PrivKey, error)
- func GetPriKeyRawBytes(priKey tcrypto.PrivKey) ([]byte, error)
- func GetPubKeyFromPeerID(pID string) (string, error)
- func GetPubKeysFromPeerIDs(peers []string) ([]string, error)
- func GetRandomPeerID() peer.ID
- func GetRandomPubKey() string
- func GetThreshold(value int) (int, error)
- func GetTssPubKey(pubKeyPoint *crypto.ECPoint) (string, cosmos.AccAddress, error)
- func PartyIDtoPubKey(party *btss.PartyID) (string, error)
- func RandStringBytesMask(n int) string
- func SetupBech32Prefix()
- func SetupIDMaps(parties map[string]*btss.PartyID, partyIDtoP2PID map[string]peer.ID) error
- func SetupPartyIDMap(partiesID []*btss.PartyID) map[string]*btss.PartyID
- func VersionLTCheck(currentVer, expectedVer string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccPubKeysFromPartyIDs ¶
func BytesToHashString ¶
func CheckKeyOnCurve ¶
func GetParties ¶
func GetPeerIDFromPubKey ¶
GetPeerIDFromPubKey get the peer.ID from bech32 format node pub key
func GetPeerIDFromSecp256PubKey ¶
GetPeerIDFromSecp256PubKey convert the given pubkey into a peer.ID
func GetPeerIDs ¶
GetPeerIDs return a slice of peer id
func GetPeerIDsFromPubKeys ¶
GetPeerIDsFromPubKeys convert a list of node pub key to their peer.ID
func GetPubKeyFromPeerID ¶
GetPubKeyFromPeerID extract the pub key from PeerID
func GetPubKeysFromPeerIDs ¶
GetPubKeysFromPeerIDs given a list of peer ids, and get a list og pub keys.
func GetThreshold ¶
func GetTssPubKey ¶
func RandStringBytesMask ¶
func SetupBech32Prefix ¶
func SetupBech32Prefix()
func SetupIDMaps ¶
func VersionLTCheck ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.