Skip to main content

Create Accreditation to Accredit

Create Accreditation to Accredit

This guide demonstrates how to issue a permission to accredit within a Federation, allowing receivers to grant accreditations to others.

Prerequisites

  • An existing federation on the IOTA network
  • Root authority permissions
  • A funded client with write access

Overview

Accreditations to accredit allow receivers to grant accreditations to other entities. This creates a hierarchical delegation system where authority can be distributed across multiple levels.

1. Set Up Client

Initialize a funded client to interact with the hierarchy:

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...

2. Create Federation and Add Property

Create a Federation and add a Property that will be used for accreditations:

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...

3. Define Receiver and Property

Specify the receiver who will get the accreditation and define the Property structure:

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...

4. Create Accreditation to Accredit

Issue the permission to accredit to the specified receiver:

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...

5. Verify Accreditation Creation

Verify that the accreditation to accredit was successfully created:

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...

Key Points

  • Higher Level Permission: Allows receivers to grant accreditations to others
  • Hierarchical Delegation: Enables multi-level authority distribution
  • Property Constraints: The accreditation specifies which Properties can be delegated
  • Root Authority Required: Only root authorities can create accreditations to accredit

Full Example Code

hierarchies-rs/examples/06_create_accreditation_to_accredit.rs
loading...