---
# System prepended metadata

title: STEDIN Cyber Security

---

# STEDIN Cyber Security

## IED Onboarding Process

```mermaid
sequenceDiagram
    STEDIN->>EW Switchboard: registerOrganization("STEDIN")
    EW Switchboard-->>STEDIN: sucess("STEDIN registered")
    STEDIN->>EW Switchboard: createRole("Installer")
    EW Switchboard-->>STEDIN: success("Role created")
    STEDIN->>EW Switchboard: Create "IED" role
    EW Switchboard-->>STEDIN: Success("Role created")
    Installer->>Identity Registry: createDID("IED_1")
    Installer->>Installer: createClaim("IED_1")
    Installer->>Installer: issueClaim("IED_1")
    Installer->>EW Switchboard: issuedClaim("IED_1")
    EW Switchboard->>STEDIN: issuedClaim("IED_1")
    STEDIN->>Identity Registry: addClaimDIDDocument("IED_1")
```

When the `Installer` creates the DID they add `STEDIN` as the owner

## Read Data Process

```mermaid
sequenceDiagram
    IED->>IED: read(value)
    IED->>IED: createMsg(value)
    IED->>SIM: requestMsgSign(msg)
    SIM->>SIM: sign(msg, privateKey)
    SIM-->>IED: signedMsg
    IED->>Application: signedMsg

```

## Write Data Process
```mermaid
sequenceDiagram
    Application->>Application: sign(msg)
    Application->>IED: signedMsg
    IED->>Identity Registry: getPublicKey(sender)
    Identity Registry-->>IED: publicKey
    IED->>SIM: verify(signedMsg, publicKey)
    SIM->>SIM: verify(signedMsg, publicKey)
    alt verified:
        SIM->>IED: decodeMsg(signedMsg, publicKey)
        IED->>IED: write(value)
    else not verified:
        SIM-->>IED: failure(reason)
        IED-->>Application: failure(reason)
    end
```