Documentation ¶
Index ¶
- Constants
- Variables
- func TestCMPPrepareKeys(ctx context.Context, require *require.Assertions, nodes []*Node, crv byte) (string, string)
- func TestFROSTPrepareKeys(ctx context.Context, require *require.Assertions, nodes []*Node, curve uint8) string
- func TestProcessOutput(ctx context.Context, require *require.Assertions, nodes []*Node, ...) *common.Operation
- func TestWriteProperty(ctx context.Context, node *Node, k, v string)
- type Configuration
- type KeygenResult
- type MultiPartySession
- type Network
- type Node
- func (node *Node) Boot(ctx context.Context)
- func (node *Node) DailyWorks(ctx context.Context, now time.Time) []byte
- func (node *Node) Index() int
- func (node *Node) ProcessCollectibleOutput(context.Context, *mtg.CollectibleOutput) bool
- func (node *Node) ProcessOutput(ctx context.Context, out *mtg.Output) bool
- 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) ListInitialSessions(ctx context.Context, limit int) ([]*Session, error)
- func (s *SQLite3Store) ListPendingSessions(ctx context.Context, limit int) ([]*Session, error)
- func (s *SQLite3Store) ListPreparedSessions(ctx context.Context, limit int) ([]*Session, error)
- func (s *SQLite3Store) ListSessionPreparedMembers(ctx context.Context, sessionId string, threshold int) ([]party.ID, error)
- func (s *SQLite3Store) ListSessionSignerResults(ctx context.Context, sessionId string) (map[string]string, error)
- func (s *SQLite3Store) MarkSessionCommitted(ctx context.Context, sessionId string) error
- func (s *SQLite3Store) MarkSessionDone(ctx context.Context, sessionId string) error
- func (s *SQLite3Store) MarkSessionPending(ctx context.Context, sessionId string, curve uint8, fingerprint string, ...) error
- func (s *SQLite3Store) MarkSessionPrepared(ctx context.Context, sessionId string, preparedAt time.Time) error
- func (s *SQLite3Store) PrepareSessionSignerIfNotExist(ctx context.Context, sessionId, signerId string, createdAt time.Time) 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) UpdateSessionSigner(ctx context.Context, sessionId, signerId string, extra []byte, ...) 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 PrepareExtra = "PREPARE" )
Variables ¶
View Source
var SCHEMA string
Functions ¶
func TestCMPPrepareKeys ¶
func TestFROSTPrepareKeys ¶ added in v0.11.0
func TestProcessOutput ¶ added in v0.11.0
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 ¶
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) ListInitialSessions ¶ added in v0.9.11
func (*SQLite3Store) ListPendingSessions ¶ added in v0.9.11
func (*SQLite3Store) ListPreparedSessions ¶ added in v0.10.0
func (*SQLite3Store) ListSessionPreparedMembers ¶ added in v0.10.0
func (*SQLite3Store) ListSessionSignerResults ¶ added in v0.10.0
func (*SQLite3Store) MarkSessionCommitted ¶ added in v0.10.0
func (s *SQLite3Store) MarkSessionCommitted(ctx context.Context, sessionId string) error
func (*SQLite3Store) MarkSessionDone ¶
func (s *SQLite3Store) MarkSessionDone(ctx context.Context, sessionId string) error
func (*SQLite3Store) MarkSessionPending ¶ added in v0.10.0
func (*SQLite3Store) MarkSessionPrepared ¶ added in v0.10.0
func (*SQLite3Store) PrepareSessionSignerIfNotExist ¶ added in v0.10.0
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) UpdateSessionSigner ¶ added in v0.10.0
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.