You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the atrium_api::types::string::Cid struct defines that the underlying cid::Cid type is private;
pubstructCid(cid::Cid)
I'd like to access the underlying cid::Cid instance for the sake of verifying the contents of the blob we get from the PDS versus the CID requested, but I can't currently see a way to do this without needlessly reprocessing it into a string and reading it with cid::Cid::from::<String>(...).
The easiest way would probably be to just make it pub cid::Cid, but if there's a different way I can get it I'd appreciate the help! 👍
The text was updated successfully, but these errors were encountered:
While this doesn't directly address your question, atrium-repo does re-export Cid.
Seems pretty straightforward to extend atrium-api to re-export this type too :)
Currently, the
atrium_api::types::string::Cid
struct defines that the underlyingcid::Cid
type is private;I'd like to access the underlying
cid::Cid
instance for the sake of verifying the contents of the blob we get from the PDS versus the CID requested, but I can't currently see a way to do this without needlessly reprocessing it into a string and reading it withcid::Cid::from::<String>(...)
.The easiest way would probably be to just make it
pub cid::Cid
, but if there's a different way I can get it I'd appreciate the help! 👍The text was updated successfully, but these errors were encountered: