Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicKeyBase32 ¶
GetPublicKeyBase32 decodes the private key string from hexadecimal format and returns the base32 encoded public key obtained using the provided private key. The base32 encoding has no padding. If there is an error decoding the private key or generating the public key, an error is returned.
Parameters: - sk: The private key string in hexadecimal format
Returns: - The base32 encoded public key as a string - Any error that occurred during the process
Types ¶
type Exit ¶
type Exit struct {
// contains filtered or unexported fields
}
Exit represents a structure that holds information related to an exit node.
func NewExit ¶
func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit
NewExit creates a new Exit node with the provided context and config. This function will currently panic if there is an error while creating the Exit node.
func (*Exit) DeleteEvent ¶
func (*Exit) ListenAndServe ¶
ListenAndServe handles incoming events from the subscription channel. It processes each event by calling the processMessage method, as long as the event is not nil. If the context is canceled (ctx.Done() receives a value), the method returns.