aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkamustard <pukkamustard@posteo.net>2020-12-27 07:50:24 +0100
committerpukkamustard <pukkamustard@posteo.net>2020-12-27 07:50:24 +0100
commit4bdf5aaad3f830ea22436735dae7d31b93d293c8 (patch)
tree04fe96816e8443ead1ff79eb9646f047ef56a539
parente1d72b1838ccbdaa25ae1583073c99cede8f36cb (diff)
example/ipfs.org: use guile-sodium 0.1.0 API
-rw-r--r--examples/ipfs.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ipfs.org b/examples/ipfs.org
index d195b7d..cff357a 100644
--- a/examples/ipfs.org
+++ b/examples/ipfs.org
@@ -434,11 +434,11 @@ The content of the block is encrypted using a key that is encoded in the read-ca
(utf8->string
(sodium-unpad
- (crypto-stream-chacha20-ietf-xor block
+ (crypto-stream-chacha20-ietf-xor #:message block
;; the nonce which is just 12 bytes of zeros
- (make-bytevector 12 0)
+ #:nonce (make-bytevector 12 0)
;; the key is encoded in the read-capability
- (read-capability-root-key read-capability))
+ #:key (read-capability-root-key read-capability))
1024))
#+END_SRC