Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jul 8, 2025

Kudos

Kudos API Summary:

  1. For this example, we define public key = NullifierKeyCommitment and private key = NullifierKey
  2. Definition of ownership: We say that a user owns a resource R if it knows the
    NullifierKey that corresponds to the R.nullifierKeyCommitment
  3. Definition of kudos token: A kudos token has three parameters:
    2.1. The quantity
    2.2. The originator: The public key of the user that minted this token
    2.3. The owner: The public key of the user that owns this token
    Each kudos token is compiled to a resource.

The following operations are supported:

  1. Minting: Any user with public key K can mint any quantity of tokens with originator = owner = K
  2. Transfer: The owner of a kudos token can transfer it to another user
  3. Split: The owner of a kudos can partition a kudos token into a list of tokens with smaller quantities such that the aggregate quantity is equal to the original
  4. Burn: The owner of a kudos token can destroy it if themself is the originator of the token
  5. Merge: Merge two kudos token with the same owner and originator into a single token

KudosBank

A kudos bank is an entity (represented by a single resource) that keeps track of the balances of every client.
Similarly to the Kudos example above, the api supports:

  1. Mint
  2. Burn
  3. Transfer
  4. Open. Opens (creates) a new bank with no accounts.
  5. Close. Closes a bank (destroys it). Only allowed if all accounts have no assets.

@janmasrovira janmasrovira changed the title old Kudos inspired app old Kudos Jul 8, 2025
@janmasrovira janmasrovira changed the title old Kudos A kudos app Jul 11, 2025
@janmasrovira janmasrovira force-pushed the kudos branch 3 times, most recently from bf8a297 to 21d6563 Compare July 15, 2025 08:27
@janmasrovira janmasrovira force-pushed the kudos branch 2 times, most recently from a9cea60 to 70b9b0d Compare July 23, 2025 21:10
@janmasrovira janmasrovira self-assigned this Jul 24, 2025
@janmasrovira janmasrovira marked this pull request as ready for review July 24, 2025 08:01
@janmasrovira janmasrovira marked this pull request as draft July 24, 2025 09:45
@janmasrovira janmasrovira requested a review from lukaszcz July 24, 2025 10:36
@janmasrovira janmasrovira marked this pull request as ready for review July 24, 2025 10:36
@lukaszcz lukaszcz merged commit 07c76b0 into main Jul 24, 2025
2 checks passed
@lukaszcz lukaszcz deleted the kudos branch July 24, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants