keeper

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SafeChainBitcoin  = bitcoin.ChainBitcoin
	SafeChainLitecoin = bitcoin.ChainLitecoin
	SafeChainEthereum = ethereum.ChainEthereum
	SafeChainMVM      = ethereum.ChainMVM
	SafeChainPolygon  = ethereum.ChainPolygon

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

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

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

Variables

This section is empty.

Functions

func OpenSQLite3ReadOnlyStore

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

func OpenSQLite3Store

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

func SafeChainCurve added in v0.11.0

func SafeChainCurve(chain byte) byte

func SafeCurveChain added in v0.11.0

func SafeCurveChain(crv byte) byte

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"`
	EthereumRPC          string             `toml:"ethereum-rpc"`
	MVMRPC               string             `toml:"mvm-rpc"`
	PolygonRPC           string             `toml:"polygon-rpc"`
	MVMFactoryAddress    string             `toml:"mvm-factory-address"`
	MTG                  *mtg.Configuration `toml:"mtg"`
}

type Deposit

type Deposit struct {
	Chain        byte
	Asset        string
	AssetAddress 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) bool

func (*Node) ProcessOutput

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

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