Skip to content

feat: Add merkle tree to OIDC server#77

Merged
matias-gonz merged 11 commits intofeat/oidc-account-recoveryfrom
oidc/key-registry-merkle-tree
Mar 10, 2025
Merged

feat: Add merkle tree to OIDC server#77
matias-gonz merged 11 commits intofeat/oidc-account-recoveryfrom
oidc/key-registry-merkle-tree

Conversation

@matias-gonz
Copy link
Member

Add merkle tree to OIDC server

update key registry submodule
update contracts
update abi
update contract updater
add merkle to dict
update contracts
);
}

private addIssHashToKeys(keys: Key[], issHash: string): Key[] {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typing for this function is weird. If you are adding issHash into key, that means that whatever was in keys wasn't actually a key.

I believe this compiles because of how getNewKeys works. It has this line inside:

return results.filter((key): key is Key => key !== null);

I don't love this because this is hinting that what this function returns is a Key but it's actually missing one attribute. Do you believe we can make the typing more explicit?

The simplest option is maybe add the issHash directly in getNewKeys.

@matias-gonz matias-gonz merged commit 4c0196e into feat/oidc-account-recovery Mar 10, 2025
2 checks passed
@matias-gonz matias-gonz deleted the oidc/key-registry-merkle-tree branch March 10, 2025 13:29
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* chore: update key registry submodule

update key registry submodule

* chore: update contracts

update contracts

* chore: update abi

update abi

* feat: update contract updater

update contract updater

* chore: add merkle to dict

add merkle to dict

* chore: update contracts

update contracts

* refactor: add BaseKey

add BaseKey

* chore: remove unused function

remove unused function

* chore: update contracts

* chore: bump contracts

bump contracts
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* chore: update key registry submodule

update key registry submodule

* chore: update contracts

update contracts

* chore: update abi

update abi

* feat: update contract updater

update contract updater

* chore: add merkle to dict

add merkle to dict

* chore: update contracts

update contracts

* refactor: add BaseKey

add BaseKey

* chore: remove unused function

remove unused function

* chore: update contracts

* chore: bump contracts

bump contracts
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* chore: update key registry submodule

update key registry submodule

* chore: update contracts

update contracts

* chore: update abi

update abi

* feat: update contract updater

update contract updater

* chore: add merkle to dict

add merkle to dict

* chore: update contracts

update contracts

* refactor: add BaseKey

add BaseKey

* chore: remove unused function

remove unused function

* chore: update contracts

* chore: bump contracts

bump contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants