From cf04073e98396691516b977f0724070ddc7b383f Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@allmydata.com> Date: Fri, 5 Jan 2007 18:12:45 -0700 Subject: [PATCH] change Encoder to use py_ecc, now that it works --- src/allmydata/encode_new.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/allmydata/encode_new.py b/src/allmydata/encode_new.py index 10b01fec..3c136b28 100644 --- a/src/allmydata/encode_new.py +++ b/src/allmydata/encode_new.py @@ -5,8 +5,7 @@ from allmydata.chunk import HashTree, roundup_pow2 from Crypto.Cipher import AES import sha from allmydata.util import mathutil -from allmydata.util.assertutil import precondition -from allmydata.encode import ReplicatingEncoder, PyRSEncoder +from allmydata.encode import PyRSEncoder def hash(data): return sha.new(data).digest() @@ -91,7 +90,7 @@ class Encoder(object): self.num_segments = mathutil.div_ceil(self.file_size, self.segment_size) def setup_encoder(self): - self.encoder = ReplicatingEncoder() + self.encoder = PyRSEncoder() self.encoder.set_params(self.segment_size, self.required_shares, self.num_shares) self.share_size = self.encoder.get_share_size() -- 2.45.2