From 4e87b114b7fc7b012583bed5dfa0f3d471f952d9 Mon Sep 17 00:00:00 2001 From: LexLuthr <88259624+LexLuthr@users.noreply.github.com> Date: Mon, 10 Feb 2025 13:00:11 +0400 Subject: [PATCH] add delegated wallet support (#1994) --- cmd/boost/wallet_cmd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/boost/wallet_cmd.go b/cmd/boost/wallet_cmd.go index 97cb30f04..cf632440a 100644 --- a/cmd/boost/wallet_cmd.go +++ b/cmd/boost/wallet_cmd.go @@ -42,7 +42,7 @@ var walletCmd = &cli.Command{ var walletNew = &cli.Command{ Name: "new", Usage: "Generate a new key of the given type", - ArgsUsage: "[bls|secp256k1 (default secp256k1)]", + ArgsUsage: "[bls|secp256k1|delegated (default secp256k1)]", Action: func(cctx *cli.Context) error { ctx := lcli.ReqContext(cctx) @@ -459,6 +459,8 @@ var walletImport = &cli.Command{ ki.Type = types.KTSecp256k1 case 2: ki.Type = types.KTBLS + case 3: + ki.Type = types.KTDelegated default: return fmt.Errorf("unrecognized key type: %d", gk.SigType) }