Documentation
¶
Index ¶
- func GetSignableRegistrationOnchain(ctx context.Context, usersAPI api.UsersApi, etherKey, starkKey string) (*api.GetSignableRegistrationResponse, error)
- func IsRegisteredOffChain(ctx context.Context, usersAPI api.UsersApi, publicAddress string) (*bool, error)
- func IsRegisteredOnChain(ctx context.Context, contract *contracts.Registration, starkPublicKey string) (*bool, error)
- func RegisterOffchain(ctx context.Context, userAPI api.UsersApi, l1signer signers.L1Signer, ...) (*api.RegisterUserResponse, error)
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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.