FrostKeyShare constructor

FrostKeyShare({
  1. required int id,
  2. required List<int> share,
})

Implementation

FrostKeyShare({required int id, required List<int> share})
  : share =
        share
            .exc(
              length: 32,
              operation: 'FrostKeyShare',
              reason: 'Invalid share length.',
            )
            .asImmutableBytes,
    id = id.asU32;