Creating an ION DID

I’ve been recently experimenting with the ION decentralized identity network, a public network for decentralized identities.

I put together a script for creating and anchoring DIDs on the ION network:

The script generates an Ed25519 key pair, creates a DID, and anchors the DID on the ION network. The script writes the key pair and DID to a file for later use.

Anchoring is essentially registering the DID with the ION network. The anchoring process takes time, and the script does not wait for it to complete, but you can check with the ION Network Explorer to verify the process has completed.