diff options
author | Piotr Szarmanski | 2023-08-03 21:54:17 +0200 |
---|---|---|
committer | Piotr Szarmanski | 2023-08-03 21:54:17 +0200 |
commit | 4bbfb31292e049cd6a09301968bd21271afaacc9 (patch) | |
tree | 173a2f8284efa083d96d145dd2862fc8b88b8892 /src/hash-backend.lisp | |
parent | 6419e069baa00627670154d20e1bd077658fbe9e (diff) |
Add default method to fetch-data and store-data, remove redundant methods.
Diffstat (limited to 'src/hash-backend.lisp')
-rw-r--r-- | src/hash-backend.lisp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/hash-backend.lisp b/src/hash-backend.lisp index 0fa095a..7568db3 100644 --- a/src/hash-backend.lisp +++ b/src/hash-backend.lisp @@ -35,18 +35,4 @@ (copy-seq block)) block))))) -(defmethod fetch-data (read-capability (backend hash-backend) &key &allow-other-keys) - (declare (type read-capability read-capability)) - (with-slots (fetch-function) backend - (eris-decode read-capability fetch-function :cache-capacity nil))) - -(defmethod store-data (input (backend hash-backend) &key (secret null-secret) (block-size 1kib) &allow-other-keys) - (declare (type octet-vector secret)) - (with-slots (output-function) backend - (eris-encode input - block-size - output-function - :hash-output nil - :secret secret))) - |