registration

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSignableRegistrationOnchain

func GetSignableRegistrationOnchain(ctx context.Context, usersAPI api.UsersApi, etherKey, starkKey string) (*api.GetSignableRegistrationResponse, error)

GetSignableRegistrationOnchain is a helper function to get the operator signature and payload hash to assist clients in the process of user registration.

func IsRegisteredOffChain

func IsRegisteredOffChain(ctx context.Context, usersAPI api.UsersApi, publicAddress string) (*bool, error)

IsRegisteredOffChain checks if the given public address is already registered on the offchain (L2 network).

func IsRegisteredOnChain

func IsRegisteredOnChain(ctx context.Context, contract *contracts.Registration, starkPublicKey string) (*bool, error)

IsRegisteredOnChain checks if the given public address is already registered on the onchain (L1 network).

func RegisterOffchain

func RegisterOffchain(ctx context.Context,
	userAPI api.UsersApi,
	l1signer signers.L1Signer,
	l2signer signers.L2Signer,
	userEmail string) (*api.RegisterUserResponse, error)

RegisterOffchain performs off chain user registration i.e, on the L2 network.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL