Skip to content

Idea for freezing the rgb asset in ifa schema #5

Description

@cymqqqq

Hi team, I have an idea for solving the RGB asset freeze problem when issuing the IFA asset(Issue the USDT).
First, I will describe my idea based on my finished work, then you can check if it is possible.
New variables:
OS_BLACK_OWNER: the utxo whose rgb asset is frozen.
OS_BLACK_RIGHTS: When we issue the ifa genesis contact, we can add the new black rights assignments. (It's like a black list manager).
TS_BLACK: New add black transition used to add black list and spend black list manager utxo.

Logic:

  1. Add new variables to the IFA schema
  2. Issue a new IFA genesis contract with black right assignment.
  3. Build the add black transition,
    3.1 Select the black manager utxo, the specific amount we want to freeze, and the black owner utxo as the input. First, we check the freeze amount whether or not it is larger than the black owner balance.
    3.2 If not, then we add the black owner's utxo with the specific amount to the black owner fungible assignment
    3.3 Add the black list manager utxo to the input(I mean spent it)
    3.4 Add a new black list manager utxo to the black manager rights assignment.(wait for next add black transition to spend)
    3.5 Complete the add black transition
  4. When we want to build a transfer transition, first we should check whether or not the sender's utxo is in the black list. If it is, then we can check if all his RGB balances are frozen(or just freeze some of them).

The above description is my new idea; you can check if it is possible. We can discuss here. :)

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