We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identity
Lets remove unneeded Identity from names, just `insert`.
private insert = async (newIdentity: ZkIdentitySemaphore, urlOrigin?: string): Promise<boolean> => {
The same goes for loadIdentities, createIdentity, createIdentityRequest, deleteIdentity, deleteAllIdentities
loadIdentities
createIdentity
createIdentityRequest
deleteIdentity
deleteAllIdentities
private load = async () => { create = async ({ walletType, messageSignature, isDeterministic, groups, urlOrigin, options, }: INewIdentityRequest): Promise<string | undefined> => { createRequest = async ({ urlOrigin }: ICreateIdentityRequestArgs): Promise<void> => { await this.browserController.openPopup({ params: { redirect: Paths.CREATE_IDENTITY, urlOrigin } }); }; delete = async ({ identityCommitment }: IDeleteIdentityArgs): Promise<IDeleteIdentityArgs> => { deleteAll = async (): Promise<boolean> => {
For this one: writeIdentities could be renamed into save
writeIdentities
save
private save = async (identities: Map<string, string>): Promise<void> => { const serializedIdentities = JSON.stringify(Array.from(identities.entries())); const ciphertext = this.cryptoService.encrypt(serializedIdentities, { mode: ECryptMode.MNEMONIC }); await this.identitiesStore.set(ciphertext); };
Originally posted by @0xisk in #1102 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The same goes for
loadIdentities
,createIdentity
,createIdentityRequest
,deleteIdentity
,deleteAllIdentities
For this one:
writeIdentities
could be renamed intosave
Originally posted by @0xisk in #1102 (comment)
The text was updated successfully, but these errors were encountered: