Documentation ¶
Index ¶
- Variables
- func CreateWallet(command *cobra.Command, args []string) error
- func ImportKey(command *cobra.Command, args []string) error
- func Initialize(command *cobra.Command, args []string) error
- func ReadConfig(command *cobra.Command) *settlement.Config
- func SignSettlement(command *cobra.Command, args []string) error
- func Unseal(command *cobra.Command, args []string) error
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Config is a configuration file to map known wallet keys to unknown wallet keys Config *settlement.Config // VaultCmd adds a command to cobra for vault interfacing VaultCmd = &cobra.Command{ Use: "vault", Short: "provides a succinct interface with vault", } )
View Source
var ( // CreateWalletCmd transfer funds command CreateWalletCmd = &cobra.Command{ Use: "create-wallet", Short: "creates a wallet on a given provider", Run: cmd.Perform("create wallet", CreateWallet), } )
View Source
var ( // ImportKeyCmd imports keys to be used in vault ImportKeyCmd = &cobra.Command{ Use: "import-key", Short: "import keys to be used in vault", Run: cmd.Perform("import key", ImportKey), } )
View Source
var ( // InitCmd initializes the vault server InitCmd = &cobra.Command{ Use: "init", Short: "initializes the vault server", Run: cmd.Perform("init vault", Initialize), } )
View Source
var ( // SignSettlementCmd signs a settlement file's transactions SignSettlementCmd = &cobra.Command{ Use: "sign-settlement", Short: "sign settlement files using vault inputs", Run: cmd.Perform("sign settlement", SignSettlement), } )
Functions ¶
func CreateWallet ¶
CreateWallet creates a wallet
func Initialize ¶
Initialize initializes the vault server
func ReadConfig ¶
func ReadConfig(command *cobra.Command) *settlement.Config
ReadConfig sets up the config flag
func SignSettlement ¶
SignSettlement runs the signing of a settlement
Types ¶
Click to show internal directories.
Click to hide internal directories.