ObjectDigest property

BcsType<String, String> ObjectDigest
final

Implementation

static final ObjectDigest = Bcs.vector(Bcs.u8()).transform(
  name: 'ObjectDigest',
  input: (String value) => fromB58(value),
  output: (List<int> value) => toB58(Uint8List.fromList(value)),
  validate: (String value) {
    if (fromB58(value).length != 32) {
      throw Exception('ObjectDigest must be 32 bytes');
    }
  },
);