Principal.create constructor

Principal.create(
  1. int uSize,
  2. Uint8List data
)

Implementation

factory Principal.create(int uSize, Uint8List data) {
  if (uSize > data.length) {
    throw 'uSize must within data length';
  }
  return Principal.fromBlob(data.sublist(0, uSize));
}