Documentation ¶
Index ¶
- func ExecuteECDSAKeySigning(input SignInput) (string, error)
- func ExecuteEdDSAKeySigning(input SignInput) (string, error)
- func ExecuteKeyGeneration(input KeygenInput) (string, error)
- func ExecuteKeyResharing(input ReshareInput) (string, error)
- func GenerateRandomChainCodeHex() (string, error)
- func StartSession(server string, session string, parties []string) error
- func WaitAllParties(parties []string, server, session string) error
- type KeygenInput
- type LocalStateAccessorImp
- type MessengerImp
- type ReshareInput
- type SignInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteECDSAKeySigning ¶
ExecuteECDSAKeySigning Coordinates ECDSA signing process in a TSS env from session setup to computing and encoding the signature
func ExecuteEdDSAKeySigning ¶
ExecuteEdDSAKeySigning Coordinates EdDSA signing process in a TSS env from session setup to computing and encoding the signature
func ExecuteKeyGeneration ¶
func ExecuteKeyGeneration(input KeygenInput) (string, error)
ExecuteKeyGeneration Orchestrates TSS keygen process for ECDSA & EdDSA including session management and message handling
func ExecuteKeyResharing ¶
func ExecuteKeyResharing(input ReshareInput) (string, error)
ExecuteKeyResharing Manages the key resharing process for ECDSA & EdDSA ensures all parties are synced and sessions are properly handled
func GenerateRandomChainCodeHex ¶
GenerateRandomChainCodeHex Generates a 32-byte random chain code encoded as a hexadecimal string. Does not take arg because it relies on the (secure) rng from the crypto pkg
func WaitAllParties ¶
Types ¶
type KeygenInput ¶
type LocalStateAccessorImp ¶
type LocalStateAccessorImp struct {
// contains filtered or unexported fields
}
func (*LocalStateAccessorImp) GetLocalState ¶
func (l *LocalStateAccessorImp) GetLocalState(pubKey string) (string, error)
func (*LocalStateAccessorImp) SaveLocalState ¶
func (l *LocalStateAccessorImp) SaveLocalState(pubKey, localState string) error
type MessengerImp ¶
func (*MessengerImp) Send ¶
func (m *MessengerImp) Send(from, to, body string) error
type ReshareInput ¶
type ReshareInput struct {}