Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 26s
13 lines
454 B
Plaintext
13 lines
454 B
Plaintext
;; next/genesis/codecs/raw.sx
|
|
;;
|
|
;; Identity codec — input bytes pass through unchanged in both
|
|
;; directions. Used for already-encoded payloads and for binary
|
|
;; artifacts (images, archives) whose CID is computed over the
|
|
;; raw bytes directly.
|
|
|
|
(DefineCodec
|
|
:name "raw"
|
|
:doc "Identity codec. The CID's multicodec byte is 0x55.\n :encode and :decode return their input unchanged."
|
|
:encode (fn (bytes) bytes)
|
|
:decode (fn (bytes) bytes))
|