Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/signed_doc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ minicbor = { version = "0.25.1", features = ["half"] }
brotli = "7.0.0"
ed25519-dalek = { version = "2.1.1", features = ["rand_core", "pem"] }
hex = "0.4.3"
strum = { version = "0.26.3", features = ["derive"] }
strum = { version = "0.27.1", features = ["derive"] }
clap = { version = "4.5.23", features = ["derive", "env"] }
jsonschema = "0.28.3"
jsonpath-rust = "0.7.5"
Expand Down
1 change: 1 addition & 0 deletions rust/signed_doc/src/decode_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use catalyst_types::problem_report::ProblemReport;

/// Compatibility policy
#[allow(dead_code)]
#[derive(Copy, Clone)]
pub(crate) enum CompatibilityPolicy {
/// Silently allow obsoleted type conversions or non deterministic encoding.
Accept,
Expand Down
9 changes: 4 additions & 5 deletions rust/signed_doc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ pub use catalyst_types::{
pub use content::Content;
use coset::{CborSerializable, Header, TaggedCborSerializable};
use decode_context::{CompatibilityPolicy, DecodeContext};
pub use metadata::{
ContentEncoding, ContentType, DocType, DocumentRef, ExtraFields, Metadata, Section,
};
pub use metadata::{ContentEncoding, ContentType, DocType, DocumentRef, Metadata, Section};
use minicbor::{decode, encode, Decode, Decoder, Encode};
pub use signature::{CatalystId, Signatures};

Expand Down Expand Up @@ -134,9 +132,10 @@ impl CatalystSignedDocument {
}

/// Return document metadata content.
// TODO: remove this and provide getters from metadata like the rest of its fields have.
#[must_use]
pub fn doc_meta(&self) -> &ExtraFields {
self.inner.metadata.extra()
pub fn doc_meta(&self) -> &Metadata {
&self.inner.metadata
}

/// Return a Document's signatures
Expand Down
239 changes: 0 additions & 239 deletions rust/signed_doc/src/metadata/extra_fields.rs

This file was deleted.

Loading