Hash.fromBytes(List<int> hash) : hash = hash { if (hash.length != length) { throw ArgumentError('Invalid hash length'); } }