Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooling] SLIP-0010 HD Child Key Generation #510

Merged
merged 39 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2f14790
Implement SLIP-0010 key derivation
h5law Feb 11, 2023
d27b260
Add SLIPS test cases
h5law Feb 14, 2023
ff4f93a
Add endpoints to interact with slips keys
h5law Feb 14, 2023
5736220
Reduce scope
h5law Feb 14, 2023
459edf7
Add GetSeed() function
h5law Feb 14, 2023
4b7fe83
Update docs
h5law Feb 14, 2023
db1a2dc
Change SLIPS to SLIP
h5law Feb 14, 2023
4f4dc10
Address linter errors
h5law Feb 14, 2023
2ae5eda
Merge branch 'main' into slip-0010-keys
h5law Feb 14, 2023
f99a56e
Remove BIP-44 paths
h5law Feb 21, 2023
aaa86a1
Link to SLIP spec
h5law Feb 21, 2023
6c9601d
Address comments
h5law Feb 21, 2023
24dd94c
Add SLIP-0010 test vectors
h5law Feb 21, 2023
962ba1d
Add BIP-44 paths back in
h5law Feb 21, 2023
c82cd0e
Update go.mod
h5law Feb 21, 2023
879eb17
Merge branch 'main' into slip-0010-keys
h5law Feb 21, 2023
10312e2
Add comments to clarify test vectors
h5law Feb 22, 2023
6675cd7
Merge branch 'main' into slip-0010-keys
h5law Feb 23, 2023
644b614
Fix merge error
h5law Feb 23, 2023
7024b64
Add DeriveChild method to KeyPair interface
h5law Feb 23, 2023
8bf2eb6
Combine test vectors
h5law Feb 23, 2023
35fbacb
Update graphs
h5law Feb 23, 2023
851c9c1
Address comments
h5law Feb 23, 2023
645be44
Add pokt specific test vectors
h5law Feb 23, 2023
e339e23
Add deriveChild CLI endpoint
h5law Feb 23, 2023
5e34cd5
Return (KeyPair, error) when storing derived child
h5law Feb 23, 2023
9a23603
Fix tests
h5law Feb 23, 2023
8a51fcd
make generate_cli_commands_docs
h5law Feb 23, 2023
749c3cf
Address comments
h5law Feb 24, 2023
fb6f3b1
make generate_cli_commands_docs
h5law Feb 24, 2023
9b9da19
Address linter error
h5law Feb 24, 2023
2df7edf
Update comments to match godoc format
h5law Feb 24, 2023
a667312
Merge branch 'main' into slip-0010-keys
h5law Feb 24, 2023
d93431d
Remove viper binding and pass store as argument to function
h5law Feb 26, 2023
b9fa9dd
Merge branch 'main' into slip-0010-keys
h5law Feb 26, 2023
3057fda
Address comments
h5law Feb 27, 2023
4282c91
Update comments
h5law Feb 28, 2023
69b310a
Update CHANGELOG.md files
h5law Feb 28, 2023
61aece6
Fix linter error
h5law Feb 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions app/client/cli/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/pokt-network/pocket/shared/converters"
"github.com/pokt-network/pocket/shared/crypto"
utilTypes "github.com/pokt-network/pocket/utility/types"
"github.com/spf13/viper"
"path/filepath"
"strconv"
"strings"
Expand Down Expand Up @@ -98,6 +99,12 @@ func NewKeysCommand() *cobra.Command {
cmd.AddCommand(signTxCmds...)
cmd.AddCommand(slipCmds...)

// Bind the store_child flag
if err := viper.BindPFlag("storeChild", cmd.Flags().Lookup("store_child")); err != nil {
h5law marked this conversation as resolved.
Show resolved Hide resolved
logger.Global.Fatal().Err(err).Msg("Unable to bind store_child flag to viper")
}
viper.SetDefault("storeChild", true)

return cmd
}

Expand Down Expand Up @@ -725,25 +732,17 @@ func keysSlipCommands() []*cobra.Command {
pwd = readPassphrase(pwd)
}

var kp crypto.KeyPair
if storeChild {
kp, err = kb.StoreChildFromKey(parentAddr, pwd, index, childPwd, childHint)
if err != nil {
return err
}
logger.Global.Info().Str("address", kp.GetAddressString()).Str("parent", parentAddr).Uint32("index", index).Msg("Child key stored in keybase")
} else {
kp, err = kb.DeriveChildFromKey(parentAddr, pwd, index)
if err != nil {
return err
}
logger.Global.Info().Str("address", kp.GetAddressString()).Str("parent", parentAddr).Uint32("index", index).Msg("Child key derived")
kp, err := kb.DeriveChildFromKey(parentAddr, pwd, index, childPwd, childHint)
if err != nil {
return err
}

if err := kb.Stop(); err != nil {
return err
}

logger.Global.Info().Str("address", kp.GetAddressString()).Str("parent", parentAddr).Uint32("index", index).Bool("stored", storeChild).Msg("Child key derived")
h5law marked this conversation as resolved.
Show resolved Hide resolved

return nil
},
},
Expand Down
2 changes: 1 addition & 1 deletion app/client/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func attachHintFlagToSubcommands() []cmdOption {

func attachStoreChildFlagToSubcommands() []cmdOption {
return []cmdOption{func(c *cobra.Command) {
c.Flags().BoolVar(&storeChild, "store_child", false, "store the derived child key in the keybase")
c.Flags().BoolVar(&storeChild, "store_child", true, "store the derived child key in the keybase")
}}
}

Expand Down
2 changes: 1 addition & 1 deletion app/client/doc/commands/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ The CLI is meant to be an user but also a machine friendly way for interacting w
* [client Validator](client_Validator.md) - Validator actor specific commands
* [client debug](client_debug.md) - Debug utility for rapid development

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Account.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Account specific commands
* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Account Send](client_Account_Send.md) - Send <fromAddr> <to> <amount>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Account_Send.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Account Send <fromAddr> <to> <amount> [flags]

* [client Account](client_Account.md) - Account specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Application.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Application actor specific commands
* [client Application Unpause](client_Application_Unpause.md) - Unpause <fromAddr>
* [client Application Unstake](client_Application_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Application_EditStake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Application EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [f

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Application_Stake.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ client Application Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Application_Unpause.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Application Unpause <fromAddr> [flags]

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Application_Unstake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Application Unstake <fromAddr> [flags]

* [client Application](client_Application.md) - Application actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Consensus.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Consensus specific commands
* [client Consensus State](client_Consensus_State.md) - Returns "Height/Round/Step"
* [client Consensus Step](client_Consensus_Step.md) - Returns the Step

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Consensus_Height.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Consensus Height [flags]

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Consensus_Round.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Consensus Round [flags]

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Consensus_State.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Consensus State [flags]

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Consensus_Step.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Consensus Step [flags]

* [client Consensus](client_Consensus.md) - Consensus specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Fisherman.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Fisherman actor specific commands
* [client Fisherman Unpause](client_Fisherman_Unpause.md) - Unpause <fromAddr>
* [client Fisherman Unstake](client_Fisherman_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Fisherman_EditStake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Fisherman EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [fla

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Fisherman_Stake.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ client Fisherman Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags]

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Fisherman_Unpause.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Fisherman Unpause <fromAddr> [flags]

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Fisherman_Unstake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Fisherman Unstake <fromAddr> [flags]

* [client Fisherman](client_Fisherman.md) - Fisherman actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Governance specific commands
* [client](client.md) - Pocket Network Command Line Interface (CLI)
* [client Governance ChangeParameter](client_Governance_ChangeParameter.md) - ChangeParameter <owner> <key> <value>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Governance ChangeParameter <owner> <key> <value> [flags]

* [client Governance](client_Governance.md) - Governance specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Key specific commands
* [client Keys Verify](client_Keys_Verify.md) - Verifies the signature is valid from the signer
* [client Keys VerifyTx](client_Keys_VerifyTx.md) - Verifies the transaction's signature is valid from the signer

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Create.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ client Keys Create [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Keys Delete <addrHex> [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
4 changes: 2 additions & 2 deletions app/client/doc/commands/client_Keys_DeriveChild.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ client Keys DeriveChild <parentAddrHex> <index> [flags]
--child_pwd string passphrase for the derived child's private key
-h, --help help for DeriveChild
--pwd string passphrase used by the cmd, non empty usage bypass interactive prompt
--store_child store the derived child key in the keybase
--store_child store the derived child key in the keybase (default true)
```

### Options inherited from parent commands
Expand All @@ -32,4 +32,4 @@ client Keys DeriveChild <parentAddrHex> <index> [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Export.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ client Keys Export <addrHex> [--export_format] [--output_file] [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Get.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Keys Get <addrHex> [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Import.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ client Keys Import [privateKeyString] [--input_file] [--import_format] [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_List.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client Keys List [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Keys Sign <addrHex> <messageHex> [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_SignTx.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ client Keys SignTx <addrHex> [--input_file] [--output_file] [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Update.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ client Keys Update <addrHex> [--pwd] [--new_pwd] [--hint] [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_Verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Keys Verify <addrHex> <messageHex> <signatureHex> [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Keys_VerifyTx.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ client Keys VerifyTx <addrHex> [--input_file] [flags]

* [client Keys](client_Keys.md) - Key specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Servicer.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Servicer actor specific commands
* [client Servicer Unpause](client_Servicer_Unpause.md) - Unpause <fromAddr>
* [client Servicer Unstake](client_Servicer_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Servicer_EditStake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Servicer EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flag

* [client Servicer](client_Servicer.md) - Servicer actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Servicer_Stake.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ client Servicer Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags]

* [client Servicer](client_Servicer.md) - Servicer actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Servicer_Unpause.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Servicer Unpause <fromAddr> [flags]

* [client Servicer](client_Servicer.md) - Servicer actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Servicer_Unstake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Servicer Unstake <fromAddr> [flags]

* [client Servicer](client_Servicer.md) - Servicer actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_System.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Commands related to health and troubleshooting of the node instance
* [client System Health](client_System_Health.md) - RPC endpoint liveness
* [client System Version](client_System_Version.md) - Advertised node software version

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_System_Health.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client System Health [flags]

* [client System](client_System.md) - Commands related to health and troubleshooting of the node instance

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_System_Version.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ client System Version [flags]

* [client System](client_System.md) - Commands related to health and troubleshooting of the node instance

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Validator actor specific commands
* [client Validator Unpause](client_Validator_Unpause.md) - Unpause <fromAddr>
* [client Validator Unstake](client_Validator_Unstake.md) - Unstake <fromAddr>

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Validator_EditStake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Validator EditStake <fromAddr> <amount> <relayChainIDs> <serviceURI> [fla

* [client Validator](client_Validator.md) - Validator actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Validator_Stake.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ client Validator Stake <fromAddr> <amount> <relayChainIDs> <serviceURI> [flags]

* [client Validator](client_Validator.md) - Validator actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Validator_Unpause.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Validator Unpause <fromAddr> [flags]

* [client Validator](client_Validator.md) - Validator actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_Validator_Unstake.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ client Validator Unstake <fromAddr> [flags]

* [client Validator](client_Validator.md) - Validator actor specific commands

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
2 changes: 1 addition & 1 deletion app/client/doc/commands/client_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ client debug [flags]

* [client](client.md) - Pocket Network Command Line Interface (CLI)

###### Auto generated by spf13/cobra on 23-Feb-2023
###### Auto generated by spf13/cobra on 24-Feb-2023
9 changes: 3 additions & 6 deletions app/client/keybase/keybase.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ type Keybase interface {
ImportFromJSON(jsonStr, passphrase string) (crypto.KeyPair, error)

// SLIPS-0010 Key Derivation
// Deterministically generate and return the derived child key
DeriveChildFromKey(masterAddrHex, passphrase string, childIndex uint32) (crypto.KeyPair, error)
DeriveChildFromSeed(seed []byte, childIndex uint32) (crypto.KeyPair, error)
// Deterministically generate and store the derived child key in the keybase
StoreChildFromKey(masterAddrHex, masterPassphrase string, childIndex uint32, childPassphrase, childHint string) (crypto.KeyPair, error)
StoreChildFromSeed(seed []byte, childIndex uint32, childPassphrase, childHint string) (crypto.KeyPair, error)
// Deterministically generate, store and return the derived child key
DeriveChildFromKey(masterAddrHex, passphrase string, childIndex uint32, childPassphrase, childHint string) (crypto.KeyPair, error)
DeriveChildFromSeed(seed []byte, childIndex uint32, childPassphrase, childHint string) (crypto.KeyPair, error)

// Accessors
Get(address string) (crypto.KeyPair, error)
Expand Down
Loading