Goal

Initialize a new Identity with:

Inputs

Steps

  1. Validate keys
  2. Build initial trees
  3. Compute commitment
identity_commitment_0 = H(
version,
keys_root_0,
attributes_root_0,
policies_root_0
)
  1. Persist identity

  2. Emit StateTransition

StateTransition {
previous_commitment = null
new_commitment      = identity_commitment_0
diff                = "identity_created"
signed_by           = control_key
timestamp
}