Skip to main content
edited title
Link
Jimii
  • 7.7k
  • 1
  • 8
  • 22

How are SPL program discriminatordiscriminators determined

Source Link
Jimii
  • 7.7k
  • 1
  • 8
  • 22

How are SPL program discriminator determined

I assume that there is a naming scheme being used for the account state discriminators as seen here in the token metadata extension

    const SPL_DISCRIMINATOR: ArrayDiscriminator =
        ArrayDiscriminator::new([112, 132, 90, 90, 11, 88, 157, 87]); 

My questions are:

  1. Whether the slice is chosen randomly or if there's meaning to each value in said slice.

  2. Why an array discriminator as opposed to a hashed constant string value?