Skip to content

Send the sealed result and transaction, and read status and Human Confidence, in the 51Did client #285

Done

Description

@Jamesr51d

The cloud's 51Did endpoints now take new names and give new fields, beside the ones they had. Nothing they gave before has changed or gone.

What the cloud now does

  • /api/v4/id/redeem takes the sealed result as sealedResult and the single-use binding as transaction. result and challenge still work as obsolete names.
  • Every redeem answer adds status: success, expired, replayed, unconfirmed or unreadable. The failure word is still written to context, as before.
  • On success, the redeem answer adds humanConfidence, the Human Confidence Value the 51Did carries (High, Medium, Low or Absent), for a License Key valid for Human Confidence. Any other call gets humanConfidenceNullReason instead.
  • /api/v4/id/verify adds humanConfidence, or humanConfidenceNullReason, for a 51Did whose signature verifies.
  • A call that uses result or challenge gets an added obsolete array of messages naming the replacement.

What the client should do

  • DidClient.redeem should send sealedResult and transaction, and the result and challenge arguments should be obsolete while they keep working.
  • The redeem answer should read status into its own enumeration. The ContextResult members that say what happened to the sealed result (EXPIRED, REPLAYED, UNREADABLE and UNCONFIRMED) should be obsolete, and keep their values, because the cloud still writes those words to context.
  • The verify and redeem calls should expose the Human Confidence Value and its null reason.
  • Every member a caller reads today should read the new answers exactly as it reads today's.

Activity

  1. jwrosewell commented on Dec 1, 2026

    @jwrosewell
    Contributor

    Fixed by #286, which sends sealedResult and transaction, reads status into its own enumeration, and gives the Human Confidence value and its null reason from verify and redeem. Released in 4.6.2 through #240 and #302.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions