keeper

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SafeChainBitcoin  = bitcoin.ChainBitcoin
	SafeChainEthereum = 2
	SafeChainMixin    = 3
	SafeChainMVM      = 4
	SafeChainLitecoin = bitcoin.ChainLitecoin

	SafeBitcoinChainId  = "c6d0c728-2624-429b-8e0d-d9d19b6592fa"
	SafeEthereumChainId = "43d61dcd-e413-450d-80b8-101d5e903357"
	SafeMVMChainId      = "a0ffd769-5850-4b48-9651-d2ae44a3e64d"
	SafeLitecoinChainId = "76c802a2-7c88-447f-a93e-c29c9e5dd9c8"

	SafeNetworkInfoTimeout = 3 * time.Minute
	SafeSignatureTimeout   = 10 * time.Minute
	SafeKeyBackupMaturity  = 24 * time.Hour

	SafeStateApproved = common.RequestStateDone
	SafeStateClosed   = common.RequestStateFailed
)
View Source
const (
	SignerKeygenMaximum = 128
)

Variables

This section is empty.

Functions

func BitcoinChainCurve added in v0.9.17

func BitcoinChainCurve(chain byte) byte

func BitcoinCurveChain added in v0.9.17

func BitcoinCurveChain(crv byte) byte

func OpenSQLite3ReadOnlyStore

func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error)

func OpenSQLite3Store

func OpenSQLite3Store(path string) (*store.SQLite3Store, error)

Types

type Configuration

type Configuration struct {
	StoreDir             string             `toml:"store-dir"`
	MonitorConversaionId string             `toml:"monitor-conversation-id"`
	SharedKey            string             `toml:"shared-key"`
	SignerPublicKey      string             `toml:"signer-public-key"`
	AssetId              string             `toml:"asset-id"`
	ObserverAssetId      string             `toml:"observer-asset-id"`
	ObserverPublicKey    string             `toml:"observer-public-key"`
	ObserverUserId       string             `toml:"observer-user-id"`
	MixinMessengerAPI    string             `toml:"mixin-messenger-api"`
	MixinRPC             string             `toml:"mixin-rpc"`
	BitcoinRPC           string             `toml:"bitcoin-rpc"`
	LitecoinRPC          string             `toml:"litecoin-rpc"`
	MVMRPC               string             `toml:"mvm-rpc"`
	MVMFactoryAddress    string             `toml:"mvm-factory-address"`
	MTG                  *mtg.Configuration `toml:"mtg"`
}

type Deposit

type Deposit struct {
	Chain  byte
	Asset  string
	Hash   string
	Index  uint64
	Amount *big.Int
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode(store *store.SQLite3Store, group *mtg.Group, conf *Configuration, signer *mtg.Configuration) *Node

func (*Node) Boot

func (node *Node) Boot(ctx context.Context)

func (*Node) CreateHolderDeposit

func (node *Node) CreateHolderDeposit(ctx context.Context, req *common.Request) error

func (*Node) Index

func (node *Node) Index() int

func (*Node) ProcessCollectibleOutput

func (node *Node) ProcessCollectibleOutput(context.Context, *mtg.CollectibleOutput)

func (*Node) ProcessOutput

func (node *Node) ProcessOutput(ctx context.Context, out *mtg.Output)

func (*Node) Terminate added in v0.8.0

func (node *Node) Terminate(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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