Documentation ¶
Index ¶
- Variables
- func AddAuthorizationHeader(request *http.Request, sessionToken string)
- func GetSessionTokenFromRequest(r *http.Request) (string, error)
- func GetSignatureForLogin(nonce string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey) ([]byte, error)
- func GetSignatureForRegistration(email string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey, ...) ([]byte, error)
- func VerifyLoginSignature(nonce string, nodeAddress common.Address, signature []byte) error
- func VerifyRegistrationSignature(email string, nodeAddress common.Address, signature []byte, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddAuthorizationHeader ¶
Adds an authorization header to an HTTP request
func GetSessionTokenFromRequest ¶
Gets the session token from a request
func GetSignatureForLogin ¶
func GetSignatureForLogin(nonce string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey) ([]byte, error)
Creates a signature for node registration
func GetSignatureForRegistration ¶
func GetSignatureForRegistration(email string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey, nodeRegistrationMessageFormat string) ([]byte, error)
Creates a signature for node registration
func VerifyLoginSignature ¶
Verifies a signature for logging in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.