Documentation
¶
Index ¶
- Constants
- func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error)
- func OpenSQLite3Store(path string) (*store.SQLite3Store, error)
- type Configuration
- type Deposit
- type Node
- func (node *Node) Boot(ctx context.Context)
- func (node *Node) CreateHolderDeposit(ctx context.Context, req *common.Request) error
- func (node *Node) Index() int
- func (node *Node) ProcessCollectibleOutput(context.Context, *mtg.CollectibleOutput)
- func (node *Node) ProcessOutput(ctx context.Context, out *mtg.Output)
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 )
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)
Types ¶
type Configuration ¶
type Configuration struct {
StoreDir string `toml:"store-dir"`
SignerPublicKey string `toml:"signer-public-key"`
AssetId string `toml:"asset-id"`
RecoveryDurationDays int `toml:"recovery-duration"`
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"`
MVMKey string `toml:"mvm-key"`
MTG *mtg.Configuration `toml:"mtg"`
}
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) CreateHolderDeposit ¶
func (*Node) ProcessCollectibleOutput ¶
func (node *Node) ProcessCollectibleOutput(context.Context, *mtg.CollectibleOutput)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.