mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
64f64f06bf
* removing flag requirement, can run web3signer without predefined public keys * placeholders for remote-keymanager-api * adding proto and accountschangedfeed * updating generated code * fix imports * fixing interface * adding work in progress apimiddleware code * started implementing functions for remote keymanager api * fixing generted code from proto * fixing protos * fixing import format * fixing proto generation again , didn't fix the first time * fixing imports again * continuing on implementing functions * implementing add function * implementing delete API function * handling errors for API * removing unusedcode and fixing format * fixing bazel * wip enable --web when running web3signer * fixing wallet check for web3signer * fixing apis * adding list remote keys unit test * import remote keys test * delete pubkeys tests * moving location of tests * adding unit tests * adding placeholder functions * adding more unit tests * fixing bazel * fixing build * fixing already slice issue with unit test * fixing linting * Update validator/client/validator.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/keymanager/types.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/node/node.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/keymanager/types.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/client/validator.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * adding comment on proto based on review * Update validator/keymanager/remote-web3signer/keymanager.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/keymanager/remote-web3signer/keymanager.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * adding generated code based on review * updating based on feedback * fixing imports * fixing formatting * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * fixing event call * fixing dependency * updating bazel * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/standard_api.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * addressing comment from review Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>
69 lines
1.6 KiB
Go
69 lines
1.6 KiB
Go
package apimiddleware
|
|
|
|
type listKeystoresResponseJson struct {
|
|
Keystores []*keystoreJson `json:"data"`
|
|
}
|
|
|
|
type keystoreJson struct {
|
|
ValidatingPubkey string `json:"validating_pubkey" hex:"true"`
|
|
DerivationPath string `json:"derivation_path"`
|
|
}
|
|
|
|
type importKeystoresRequestJson struct {
|
|
Keystores []string `json:"keystores"`
|
|
Passwords []string `json:"passwords"`
|
|
SlashingProtection string `json:"slashing_protection"`
|
|
}
|
|
|
|
type importKeystoresResponseJson struct {
|
|
Statuses []*statusJson `json:"data"`
|
|
}
|
|
|
|
type deleteKeystoresRequestJson struct {
|
|
PublicKeys []string `json:"pubkeys" hex:"true"`
|
|
}
|
|
|
|
type statusJson struct {
|
|
Status string `json:"status"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type deleteKeystoresResponseJson struct {
|
|
Statuses []*statusJson `json:"data"`
|
|
SlashingProtection string `json:"slashing_protection"`
|
|
}
|
|
|
|
//remote keymanager api
|
|
|
|
type listRemoteKeysResponseJson struct {
|
|
Keystores []*remoteKeysListJson `json:"data"`
|
|
}
|
|
|
|
type remoteKeysListJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Url string `json:"url"`
|
|
Readonly bool `json:"readonly"`
|
|
}
|
|
|
|
type remoteKeysJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Url string `json:"url"`
|
|
Readonly bool `json:"readonly"`
|
|
}
|
|
|
|
type importRemoteKeysRequestJson struct {
|
|
Keystores []*remoteKeysJson `json:"remote_keys"`
|
|
}
|
|
|
|
type importRemoteKeysResponseJson struct {
|
|
Statuses []*statusJson `json:"data"`
|
|
}
|
|
|
|
type deleteRemoteKeysRequestJson struct {
|
|
PublicKeys []string `json:"pubkeys" hex:"true"`
|
|
}
|
|
|
|
type deleteRemoteKeysResponseJson struct {
|
|
Statuses []*statusJson `json:"data"`
|
|
}
|