Documentation ¶
Index ¶
- Constants
- Variables
- func TestCMPPrepareKeys(ctx context.Context, require *require.Assertions, nodes []*Node, crv byte) (string, string)
- func TestCMPProcessOutput(ctx context.Context, require *require.Assertions, nodes []*Node, ...) *common.Operation
- type Configuration
- type KeygenResult
- type MultiPartySession
- type Network
- type Node
- type SQLite3Store
- func (s *SQLite3Store) Close() error
- func (s *SQLite3Store) CountDailyWorks(ctx context.Context, members []party.ID, begin, end time.Time) ([]int, error)
- func (s *SQLite3Store) FailSession(ctx context.Context, sessionId string) error
- func (s *SQLite3Store) FinishSignSession(ctx context.Context, sessionId string, curve uint8, fingerprint string, ...) error
- func (s *SQLite3Store) ListInitialSessions(ctx context.Context, limit int) ([]*Session, error)
- func (s *SQLite3Store) ListPendingSessions(ctx context.Context, limit int) ([]*Session, error)
- func (s *SQLite3Store) ListSessionSigners(ctx context.Context, sessionId string) (map[string]string, error)
- func (s *SQLite3Store) MarkSessionDone(ctx context.Context, sessionId string) error
- func (s *SQLite3Store) ReadKeyByFingerprint(ctx context.Context, sum string) (string, uint8, []byte, error)
- func (s *SQLite3Store) ReadProperty(ctx context.Context, k string) (string, error)
- func (s *SQLite3Store) ReadSession(ctx context.Context, sessionId string) (*Session, error)
- func (s *SQLite3Store) SessionsState(ctx context.Context) (*State, error)
- func (s *SQLite3Store) WriteKeyIfNotExists(ctx context.Context, sessionId string, curve uint8, public string, conf []byte) error
- func (s *SQLite3Store) WriteProperty(ctx context.Context, k, v string) error
- func (s *SQLite3Store) WriteSessionIfNotExist(ctx context.Context, op *common.Operation, transaction crypto.Hash, ...) error
- func (s *SQLite3Store) WriteSessionSignerIfNotExist(ctx context.Context, sessionId, signerId string, extra []byte, ...) error
- func (s *SQLite3Store) WriteSessionWorkIfNotExist(ctx context.Context, sessionId, signerId string, round int, extra []byte) error
- type Session
- type SignResult
- type State
Constants ¶
View Source
const ( SessionTimeout = time.Hour KernelTimeout = 3 * time.Minute OperationExtraLimit = 128 MPCFirstMessageRound = 2 )
Variables ¶
View Source
var SCHEMA string
Functions ¶
func TestCMPPrepareKeys ¶
Types ¶
type Configuration ¶
type Configuration struct { StoreDir string `toml:"store-dir"` MessengerConversationId string `toml:"messenger-conversation-id"` MonitorConversaionId string `toml:"monitor-conversation-id"` Threshold int `toml:"threshold"` AssetId string `toml:"asset-id"` KeeperAssetId string `toml:"keeper-asset-id"` KeeperPublicKey string `toml:"keeper-public-key"` SaverAPI string `toml:"saver-api"` SaverKey string `toml:"saver-key"` MixinRPC string `toml:"mixin-rpc"` MTG *mtg.Configuration `toml:"mtg"` }
func (*Configuration) Messenger ¶
func (c *Configuration) Messenger() *messenger.MixinConfiguration
type KeygenResult ¶
type MultiPartySession ¶ added in v0.9.6
type MultiPartySession struct {
// contains filtered or unexported fields
}
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func NewNode ¶
func NewNode(store *SQLite3Store, group *mtg.Group, network Network, conf *Configuration, keeper *mtg.Configuration, mixin *mixin.Client) *Node
func TestPrepare ¶
func TestPrepare(require *require.Assertions) (context.Context, []*Node)
func (*Node) DailyWorks ¶ added in v0.9.13
TODO put all works query to the custodian module
func (*Node) ProcessCollectibleOutput ¶
func (node *Node) ProcessCollectibleOutput(context.Context, *mtg.CollectibleOutput)
type SQLite3Store ¶
type SQLite3Store struct {
// contains filtered or unexported fields
}
func OpenSQLite3Store ¶
func OpenSQLite3Store(path string) (*SQLite3Store, error)
func (*SQLite3Store) Close ¶
func (s *SQLite3Store) Close() error
func (*SQLite3Store) CountDailyWorks ¶ added in v0.9.13
func (*SQLite3Store) FailSession ¶
func (s *SQLite3Store) FailSession(ctx context.Context, sessionId string) error
func (*SQLite3Store) FinishSignSession ¶
func (*SQLite3Store) ListInitialSessions ¶ added in v0.9.11
func (*SQLite3Store) ListPendingSessions ¶ added in v0.9.11
func (*SQLite3Store) ListSessionSigners ¶
func (*SQLite3Store) MarkSessionDone ¶
func (s *SQLite3Store) MarkSessionDone(ctx context.Context, sessionId string) error
func (*SQLite3Store) ReadKeyByFingerprint ¶ added in v0.3.0
func (*SQLite3Store) ReadProperty ¶
func (*SQLite3Store) ReadSession ¶
func (*SQLite3Store) SessionsState ¶ added in v0.9.11
func (s *SQLite3Store) SessionsState(ctx context.Context) (*State, error)
func (*SQLite3Store) WriteKeyIfNotExists ¶
func (*SQLite3Store) WriteProperty ¶
func (s *SQLite3Store) WriteProperty(ctx context.Context, k, v string) error
func (*SQLite3Store) WriteSessionIfNotExist ¶
func (*SQLite3Store) WriteSessionSignerIfNotExist ¶
func (*SQLite3Store) WriteSessionWorkIfNotExist ¶ added in v0.9.13
type SignResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.