+# output to stdout the core fingerprint from the gpg core secret
+# keyring
+core_fingerprint() {
+ log debug "determining core key fingerprint..."
+ gpg_core --quiet --list-secret-key \
+ --with-colons --fixed-list-mode --with-fingerprint \
+ | grep ^fpr: | cut -d: -f10
+}
+
+# fail if authentication has not been setup
+check_no_setup() {
+ # FIXME: what is the right test to do here?
+ [ -d "$MADATADIR" ] \
+ || failure "This host appears to have not yet been set up for Monkeysphere authentication.
+Please run 'monkeysphere-authentication setup' first."
+}
+
+# export signatures from core to sphere
+gpg_core_sphere_sig_transfer() {
+ log debug "exporting core local sigs to sphere..."
+ gpg_core --export-options export-local-sigs --export | \
+ gpg_sphere "--import-options import-local-sigs --import"
+}
+