Skip to main content

Create Accreditation to Attest

Create Accreditation to Attest​

This guide demonstrates how to issue a accreditation to attest to a statement within a Federation.

Prerequisites​

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

Overview​

Accreditations to attest allow receivers to create attestations for specific statements. This is a key mechanism for delegating attestation authority within a hierarchy.

1. Set Up Client​

Initialize a funded client to interact with the hierarchy:

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...

2. Create Federation and Add Property​

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

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...

3. Define Receiver and Property​

Specify the receiver who will get the attestation permission and define the Property:

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...

4. Create Accreditation to Attest​

Issue the permission to attest to the specified receiver:

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...

5. Verify Accreditation Creation​

Verify that the accreditation was successfully created:

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...

Key Points​

  • Attestation Permission: Allows receivers to create attestations for specific statements
  • Property Constraints: The accreditation specifies which Properties and Values can be attested
  • Receiver Identification: Receivers are identified by their unique ObjectID
  • Delegation of Authority: This mechanism enables hierarchical delegation of attestation authority

Full Example Code​

hierarchies-rs/examples/04_create_accreditation_to_attest.rs
loading...