mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
* Renaming * Add server-side support for onboarding * add onboard --amount command * support client side onboarding * Drop dummy tx builder * Drop faucet * Fixes * fix public key encoding * fix schnorr pub key check in validation * fix server/README to accomodate onboarding --------- Co-authored-by: Louis <louis@vulpem.com> Co-authored-by: João Bordalo <bordalix@users.noreply.github.com>
24 lines
435 B
Go
24 lines
435 B
Go
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
var receiveCommand = cli.Command{
|
|
Name: "receive",
|
|
Usage: "Shows both onchain and offchain addresses",
|
|
Action: receiveAction,
|
|
}
|
|
|
|
func receiveAction(ctx *cli.Context) error {
|
|
offchainAddr, onchainAddr, err := getAddress()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return printJSON(map[string]interface{}{
|
|
"offchain_address": offchainAddr,
|
|
"onchain_address": onchainAddr,
|
|
})
|
|
}
|