mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
23 lines
638 B
Go
23 lines
638 B
Go
|
package remote_utils
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/logrusorgru/aurora"
|
||
|
"github.com/prysmaticlabs/prysm/validator/accounts/petnames"
|
||
|
)
|
||
|
|
||
|
// DisplayRemotePublicKeys prints remote public keys to stdout.
|
||
|
func DisplayRemotePublicKeys(validatingPubKeys [][48]byte) {
|
||
|
au := aurora.NewAurora(true)
|
||
|
for i := 0; i < len(validatingPubKeys); i++ {
|
||
|
fmt.Println("")
|
||
|
fmt.Printf(
|
||
|
"%s\n", au.BrightGreen(petnames.DeterministicName(validatingPubKeys[i][:], "-")).Bold(),
|
||
|
)
|
||
|
// Retrieve the validating key account metadata.
|
||
|
fmt.Printf("%s %#x\n", au.BrightCyan("[validating public key]").Bold(), validatingPubKeys[i])
|
||
|
fmt.Println(" ")
|
||
|
}
|
||
|
}
|