From 438b107323d82c2401e8fd4466b8c20a29eda972 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sat, 4 Jan 2025 23:19:32 +0100 Subject: [PATCH] feat (core): Bump Multibase and illustrate Base256Emoji Using https://github.com/multiformats/java-multibase/pull/37. --- MODULE.bazel | 9 +++++++++ docs/use/info/index.md | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 40907021a..c678525b1 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -118,6 +118,12 @@ enola_maven.install( "org.apache.tika:tika-core:3.0.0-BETA2", "org.apache.tika:tika-parsers-standard-package:3.0.0-BETA2", "com.github.ipld:java-cid:1.3.8", + + # TODO Fix missing version of java-multibase?! + "com.github.multiformats:java-multibase", + + # TODO Remove after merge of https://github.com/multiformats/java-multibase/pull/37 + "com.github.vorburger:java-multibase:Base256Emoji-166578b51d-1", ], # NB: Never de-activate duplicate_version_warning = "error"! # While it can be tempting to resolve a build-time problem which @@ -126,6 +132,9 @@ enola_maven.install( # to clean versions at build time! duplicate_version_warning = "error", excluded_artifacts = [ + # TODO Remove after merge of https://github.com/multiformats/java-multibase/pull/37 + "com.github.multiformats:java-multibase", + # https://commons.apache.org/proper/commons-logging/ is a PITA, # because it contains package org.apache.commons.logging, which we # already get from org.slf4j:jcl-over-slf4j, see https://www.slf4j.org/legacy.html diff --git a/docs/use/info/index.md b/docs/use/info/index.md index fdb581bf4..aafc3f2a3 100644 --- a/docs/use/info/index.md +++ b/docs/use/info/index.md @@ -98,7 +98,14 @@ $ ./enola info digest --base=Base64Pad --type=sha2_256 --http-scheme https://www ... ``` -This _digest_ can be used e.g. in [`?integrity=...` of `fetch`](../fetch/index.md#integrity). +Or, just _"for fun",_ also: + +```bash cd ../.././.. +$ ./enola info digest --base=Base256Emoji --http-scheme https://www.vorburger.ch/hello.md +... +``` + +Any of these _digests_ can be used e.g. in [`?integrity=...` of `fetch`](../fetch/index.md#integrity). ## Screencast