Type alias RegisterCredentialParamJson

RegisterCredentialParamJson: {
    auxiliary_data: number[];
    credential_info: {
        holder_id: HexString;
        holder_revocable: boolean;
        metadata_url: {
            hash: OptionJson<HexString>;
            url: string;
        };
        valid_from: Timestamp.SchemaValue;
        valid_until: OptionJson<Timestamp.SchemaValue>;
    };
}

schema serializable JSON representation of parameter for the "registerCredential" entrypoint

Type declaration

  • auxiliary_data: number[]

    Any additional data to include in the parameter (hex encoded)

  • credential_info: {
        holder_id: HexString;
        holder_revocable: boolean;
        metadata_url: {
            hash: OptionJson<HexString>;
            url: string;
        };
        valid_from: Timestamp.SchemaValue;
        valid_until: OptionJson<Timestamp.SchemaValue>;
    }

    The credential info to register

    • holder_id: HexString

      Ed25519 public key of credential holder (hex encoded)

    • holder_revocable: boolean

      Whether holder can revoke or not

    • metadata_url: {
          hash: OptionJson<HexString>;
          url: string;
      }

      Metadata url of the credential

      • hash: OptionJson<HexString>

        An optional checksum of the data at the URL destination

      • url: string

        The url

    • valid_from: Timestamp.SchemaValue

      Time (as ISO string) the credential is valid from

    • valid_until: OptionJson<Timestamp.SchemaValue>

      (Optional) Time (as ISO string) the credential is valid until

Generated using TypeDoc