Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain the Mint Genesis configuration syntax #440

Closed
6r1d opened this issue Nov 30, 2023 · 4 comments
Closed

Explain the Mint Genesis configuration syntax #440

6r1d opened this issue Nov 30, 2023 · 4 comments
Labels
I-concepts Core Iroha concepts (data model, operations, mechanics)

Comments

@6r1d
Copy link
Contributor

6r1d commented Nov 30, 2023

Recently, Matías Salimbene asked us about the role of object field in Genesis Mint ISI.

Object here means we can mint both values and public keys, according to @Erigara.

{
  "Mint": {
    "object": "44_u32",
    "destination_id": {
      "AssetId": "cabbage#garden_of_live_flowers#alice@wonderland"
    }
  }
}
@Erigara
Copy link

Erigara commented Nov 30, 2023

@6r1d

Also SignatureCheckCondition ;)

And... increasing number of trigger repetitions.

      {
        "Mint": {
          "object": 5,
          "destination_id": {
            "TriggerId": "my_cool_trigger"
          }
        }
      }

@Erigara
Copy link

Erigara commented Nov 30, 2023

It's kinda confusing to represent all this different actions by the same isi type.

@6r1d
Copy link
Contributor Author

6r1d commented Nov 30, 2023

Also SignatureCheckCondition ;)

Can you elaborate, please?

And... increasing number of trigger repetitions.

Does it mean such Mint instance will increment my_cool_trigger repetitions by five?

It's kinda confusing to represent all this different actions by the same isi type.

If there's no technical limitation over how the instruction is represented, I'm sure Mint configuration could be improved.
Then again, I wonder whether we want to support the old way of configuring it.

@Erigara
Copy link

Erigara commented Nov 30, 2023

Does it mean such Mint instance will increment my_cool_trigger repetitions by five?

Yes.

Can you elaborate, please?

Sure.

Mint instruction could be used to change how user transaction's signatures are checked (either any account signature to be attached or all signatures to be attached).

{
  "Mint": {
    "object": { "SignatureCheckCondition": {"AnyAccountSignatureOr": []} },
    "destination_id": {
      "AccountId": "alice@wonderland"
    }
  }
}

@nxsaken nxsaken added I-concepts Core Iroha concepts (data model, operations, mechanics) and removed iroha2 labels May 16, 2024
@nxsaken nxsaken closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-concepts Core Iroha concepts (data model, operations, mechanics)
Projects
None yet
Development

No branches or pull requests

3 participants