Skip to content

sky-ecosystem/identity-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identity Network

On-chain identity verification registries for the Sky ecosystem. See the docs.

Contracts

  • IIdentityNetwork - Shared interface exposing isMember(address) -> bool.
  • IdentityNetwork - Holds both a direct member set and a list of child subnets. isMember checks direct members first, then loops all registered subnets. Buds manage members and subnets. Wards manage auth and bud access.
  • IdentityFactory - Deploys networks with initial admin, buds, members, and subnets in one call.

Access Control

Two-tier auth model following MakerDAO conventions:

Role Set by Can do
Wards (rely/deny) Other wards Manage wards and buds
Buds (kiss/diss) Wards Add/remove members and subnets

Membership Resolution

isMember(usr) traverses the tree — direct members first, then each subnet recursively:

isMember(0xABC)
  │
  ├─ 0xABC in directMembers?  ──► yes → return true
  │
  └─ for each subnet:
       subnet.isMember(0xABC)?  ──► yes → return true
                                        (subnet checks its own
                                         directMembers + subnets)
  return false

Subnets are themselves IIdentityNetwork contracts, so networks compose into trees.

Build & Test

forge build
forge test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors