conversion

package
v0.0.0-...-5cda5f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccPubKeysFromPartyIDs

func AccPubKeysFromPartyIDs(partyIDs []string, partyIDMap map[string]*tss.PartyID) ([]string, error)

func BytesToHashString

func BytesToHashString(msg []byte) (string, error)

func CheckKeyOnCurve

func CheckKeyOnCurve(pk string) (bool, error)

func GeneratePartyIDtoP2PIDMaps

func GeneratePartyIDtoP2PIDMaps(parties map[string]*tss.PartyID) (map[string]peer.ID, error)

func GetParties

func GetParties(keys []string, localPartyKey string) ([]*tss.PartyID, *tss.PartyID, error)

func GetPeerIDFromPartyID

func GetPeerIDFromPartyID(partyID *tss.PartyID) (peer.ID, error)

func GetPeerIDFromPubKey

func GetPeerIDFromPubKey(pubkey string) (peer.ID, error)

func GetPeerIDFromSecp256PubKey

func GetPeerIDFromSecp256PubKey(pk []byte) (peer.ID, error)

func GetPeerIDsFromPubKeys

func GetPeerIDsFromPubKeys(pubkeys []string) ([]peer.ID, error)

func GetPeersID

func GetPeersID(partyIDtoP2PID map[string]peer.ID, localPeerID string) []peer.ID

func GetPubKeyFromPeerID

func GetPubKeyFromPeerID(pID string) (string, error)

func GetPubKeysFromPeerIDs

func GetPubKeysFromPeerIDs(peers []string) ([]string, error)

func GetTssPubKey

func GetTssPubKey(pubKeyPoint *crypto.ECPoint) (string, []byte, []byte, error)

func PartyIDtoPubKey

func PartyIDtoPubKey(party *tss.PartyID) (string, error)

func SetupPartyIDMap

func SetupPartyIDMap(partiesID []*tss.PartyID) map[string]*tss.PartyID

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL