Introduction
An app can use private information to decide whether a public record
should change.
What you’ll learn
Explain how a contract can use private inputs to justify a public
state change.
Lesson
Kachina describes a model for privacy-preserving contracts. A
contract operation can depend on a user’s private inputs while proposing
a change that the shared ledger can check. The application must decide
which facts belong in public state and which it manages privately. A
transcript represents the relevant interaction with shared state so the
operation can be checked in context.
Worked example. Two eligible learners ask for the
last workshop seat. Each can produce a valid membership proof. The
shared state starts with one seat. When the first reservation succeeds,
the second operation must still meet the rules against the state it
encounters. A valid proof of eligibility does not guarantee an available
seat. Operations on separate state can have fewer conflicts than two
requests that depend on the same capacity counter.
Practice quiz
Select one answer per question.
Answer key and explanations
- A. They can still qualify under the credential
policy.
- C. A proposed change must satisfy the rules and
relevant shared state at acceptance.
Sign in with Discord to take this quiz and earn your badge.