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 Network
- type Node
- type SQLite3Store
- func (s *SQLite3Store) Close() 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) ListSessionSigners(ctx context.Context, sessionId string) (map[string]string, error)
- func (s *SQLite3Store) ListSessions(ctx context.Context, state, limit int) ([]*common.Operation, 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) 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
- type Session
- type SignResult
Constants ¶
View Source
const ( 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"` Threshold int `toml:"threshold"` AssetId string `toml:"asset-id"` KeeperAssetId string `toml:"keeper-asset-id"` KeeperPublicKey string `toml:"keeper-public-key"` MixinRPC string `toml:"mixin-rpc"` MTG *mtg.Configuration `toml:"mtg"` }
func (*Configuration) Messenger ¶
func (c *Configuration) Messenger() *messenger.MixinConfiguration
type KeygenResult ¶
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) 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) FailSession ¶
func (s *SQLite3Store) FailSession(ctx context.Context, sessionId string) error
func (*SQLite3Store) FinishSignSession ¶
func (*SQLite3Store) ListSessionSigners ¶
func (*SQLite3Store) ListSessions ¶
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) WriteKeyIfNotExists ¶
func (*SQLite3Store) WriteProperty ¶
func (s *SQLite3Store) WriteProperty(ctx context.Context, k, v string) error
func (*SQLite3Store) WriteSessionIfNotExist ¶
type SignResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.