Documentation ¶
Index ¶
- Variables
- func AddAuthorizationHeader(request *http.Request, session *db.Session)
- 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 ¶ added in v0.2.0
Gets the session token from a request
func GetSignatureForLogin ¶ added in v0.2.0
func GetSignatureForLogin(nonce string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey) ([]byte, error)
Creates a signature for node registration
func GetSignatureForRegistration ¶ added in v0.2.0
func GetSignatureForRegistration(email string, nodeAddress common.Address, privateKey *ecdsa.PrivateKey) ([]byte, error)
Creates a signature for node registration
func VerifyLoginSignature ¶ added in v0.2.0
Verifies a signature for logging in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.